<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Quickstart guide</title>
    <link>/en/getting-started/quickstart/</link>
    <description>Recent content in Quickstart guide on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/getting-started/quickstart/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Getting-Started: Preparing the installation environment</title>
      <link>/en/getting-started/quickstart/preparing-installation-environment/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/getting-started/quickstart/preparing-installation-environment/</guid>
      <description>
        
        
        &lt;p&gt;Before installing OpenText™ Analytics Database, you must configure your environment.&lt;/p&gt;
&lt;p&gt;To run OpenText™ Analytics Database Enterprise on-premises, follow the numbered instructions below.&lt;/p&gt;
&lt;!--To run the OpenText&amp;trade; Analytics Database in a Virtual Machine instead, see &lt;a href=&#34;../../../en/getting-started/community-edition-ce/#&#34;&gt;Trial license as the Evaluation Option&lt;/a&gt;.--&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Copy the installation file to your home directory. The example shows an &lt;code&gt;rpm&lt;/code&gt; file for CentOS/RHEL, but you may have a &lt;code&gt;deb&lt;/code&gt; file for Debian.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
$ scp vertica-&lt;span class=&#34;code-variable&#34;&gt;version&lt;/span&gt;.RHEL8.x86_64.rpm /~
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Identify the IP address of the current node.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ ipconfig -a
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If the ipconfig command is not found in your path, you can try running it directly using the paths &lt;code&gt;/sbin/ipconfig&lt;/code&gt; or &lt;code&gt;/usr/sbin/ipconfig&lt;/code&gt;. If neither of those work, use the ip command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ ip a
&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

The previous commands can return multiple addresses. For example, if your system is configured to use both IPv4 and IPv6 addressing, the commands will list two addresses, one for each address family. In this case, you must determine which address you want to use.

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Ensure your packages are up to date. Run the command based on your distribution.&lt;/p&gt;
&lt;p&gt;On CentOS and RedHat:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sudo yum update -y
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;On openSUSE:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sudo zypper up
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;On Debian and Ubuntu:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set swappiness to 0 (recommended).&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sudo systemctl vm.swappiness=0
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Verify that SELinux is running in permissive mode or is disabled.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sudo setenforce 0
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Disable the system firewall.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sudo systemctl mask firewalld
$ sudo systemctl disable firewalld
$ sudo systemctl stop firewalld
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../en/getting-started/quickstart/installing/&#34;&gt;Install OpenText Analytics Database&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Getting-Started: Installing OpenText Analytics Database</title>
      <link>/en/getting-started/quickstart/installing/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/getting-started/quickstart/installing/</guid>
      <description>
        
        
        &lt;ol&gt;
&lt;li&gt;
&lt;p&gt;To install from the binary, run the command based on your distribution.&lt;/p&gt;
&lt;p&gt;On CentOS, RedHat, and openSUSE:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sudo rpm -Uvh vertica-&lt;span class=&#34;code-variable&#34;&gt;version&lt;/span&gt;.RHEL8.x86_64.rpm
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;On Debian and Ubuntu:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sudo dpkg -i vertica_&lt;span class=&#34;code-variable&#34;&gt;version&lt;/span&gt;_amd64.deb
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the installation script. The following command specifies the localhost, the rpm, a database admin, and home directory.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ sudo /opt/vertica/sbin/install_vertica -s localhost -r vertica-&lt;span class=&#34;code-variable&#34;&gt;version&lt;/span&gt;.RHEL8.x86_64.rpm
-u dbadmin -g dbadmin -d /home/dbadmin -p vertica -L -Y
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Switch to the newly created dbadmin user.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ su dbadmin
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run admintools and accept the EULA and operating license.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ admintools
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../en/getting-started/quickstart/creating-db-and-users/#&#34;&gt;Creating a database and users&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Getting-Started: Creating a database and users</title>
      <link>/en/getting-started/quickstart/creating-db-and-users/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/getting-started/quickstart/creating-db-and-users/</guid>
      <description>
        
        
        &lt;p&gt;The admintools utility included in the installation provides a number of administrative functions. The following steps show how to create a database and users with this utility.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;View the status of your cluster. It should return an empty 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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ admintools -t view_cluster
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt; DB &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; Host &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; State
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&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;Create a database called &amp;quot;vdb&amp;quot; in the home directory with the password &amp;quot;vertica&amp;quot;. This command also sets the plaintext password &amp;quot;vertica&amp;quot; for both the database and dbadmin.&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ admintools -t create_db --data_path&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/home/dbadmin --catalog_path&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/home/dbadmin --database&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;vdb --password&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;vertica --hosts&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;localhost
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run vsql and enter &amp;quot;vertica&amp;quot; at the password prompt.&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-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ vsql
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a user named &amp;quot;Mike&amp;quot; with the password &amp;quot;inventor.&amp;quot;&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;USER&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;Mike&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;IDENTIFIED&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;inventor&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;/li&gt;
&lt;li&gt;
&lt;p&gt;Grant the USAGE permission on 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;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;k&#34;&gt;PUBLIC&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;Mike&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../en/getting-started/quickstart/loading-sample-data/&#34;&gt;Load sample data&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Getting-Started: Loading sample data</title>
      <link>/en/getting-started/quickstart/loading-sample-data/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/getting-started/quickstart/loading-sample-data/</guid>
      <description>
        
        
        &lt;p&gt;OpenText™ Analytics Database offers several solutions for loading files with structured and unstructred data, and from several formats.&lt;/p&gt;
&lt;h2 id=&#34;creating-a-sample-data-file&#34;&gt;Creating a sample data file&lt;/h2&gt;
&lt;p&gt;Create a sample CSV file called &lt;code&gt;cities.csv&lt;/code&gt; with the following contents and save it to /home/dbadmin/cities.csv.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;City,State,Zip,Population
Boston,MA,02108,694583
Chicago,IL,60601,2705994
Seattle,WA,98101,744955
Dallas,TX,75201,1345047
New York,NY,10001,8398748
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;loading-structured-data-from-a-file&#34;&gt;Loading structured data from a file&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Run vsql.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ vsql
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create the cities table.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE cities (
city       varchar(20),
state      char(2),
zip        int,
population int
);
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use the &lt;a href=&#34;../../../en/sql-reference/statements/copy/&#34;&gt;COPY&lt;/a&gt; statement to load the data from the &lt;code&gt;cities.csv&lt;/code&gt; file. The following command logs exceptions and rejections in the home directory.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; COPY cities FROM LOCAL &amp;#39;/home/dbadmin/cities.csv&amp;#39; DELIMITER &amp;#39;,&amp;#39; NULL &amp;#39;&amp;#39; EXCEPTIONS &amp;#39;/home/dbadmin/cities_exceptions.log&amp;#39;
REJECTED DATA &amp;#39;/home/dbadmin/cities_rejections.log&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Review the rejections log for what data was excluded. Here, the header was excluded.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ cat /home/dbadmin/cities_rejections.log

City,State,Zip,Population
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Review the exceptions for details on the error. In this case, the header failed the database&#39;s integer data type verification.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ cat /home/dbadmin/cities_exceptions.log

COPY: Input record 1 has been rejected (Invalid integer format &amp;#39;Zip&amp;#39; for column 3 (zip)).
Please see /home/dbadmin/cities_rejections.log, record 1 for the rejected record. This record was record 1 from cities.csv
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To fix this, add SKIP 1 to the original COPY statement. This excludes the first row.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; COPY cities FROM LOCAL &amp;#39;/home/dbadmin/cities.csv&amp;#39; DELIMITER, &amp;#39;NULL&amp;#39;
EXCEPTIONS &amp;#39;/home/dbadmin/cities_exceptions.log&amp;#39;
REJECTED DATA &amp;#39;/home/dbadmin/cities_rejections.log&amp;#39; SKIP 1;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;loading-unstructured-data-with-flex-tables&#34;&gt;Loading unstructured data with flex tables&lt;/h2&gt;
&lt;p&gt;To load data from another source, the database uses Flex tables. Flex tables simplify data loading by allowing you to load unstructured or &amp;quot;semi-structured&amp;quot; data without having to create a schema or column definitions.&lt;/p&gt;
&lt;p&gt;Supported formats include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Avro Data&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;CEF&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;CSV&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Delimited&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;JSON&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a table called cities_flex. Notice how it does not include column names or data types.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE FLEXIBLE TABLE cities_flex();
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Load the CSV file into the table.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; COPY cities_flex FROM &amp;#39;/source/cities.csv&amp;#39; PARSER FDELIMITEDPARSER (delimiter=&amp;#39;,&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Query the cities_flex table, specifying the column names from the original CSV file.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT city, state FROM cities_flex;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Getting-Started: Monitoring the database</title>
      <link>/en/getting-started/quickstart/monitoring-db/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/getting-started/quickstart/monitoring-db/</guid>
      <description>
        
        
        &lt;p&gt;This page includes a collection of general-purpose SQL statements useful for monitoring your database.&lt;/p&gt;
&lt;h2 id=&#34;check-disk-space&#34;&gt;Check disk space&lt;/h2&gt;
&lt;p&gt;Check disk space used by tables.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT projection_schema, anchor_table_name, to_char(sum(used_bytes)/1024/1024/1024,&amp;#39;999,999.99&amp;#39;)
as disk_space_used_gb FROM
projection_storage
GROUP by projection_schema, anchor_table_name ORDER by
disk_space_used_gb desc limit 50;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Check total disk space used.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT to_char(sum(used_bytes)/1024/1024/1024,&amp;#39;999,999.99&amp;#39;) AS gb FROM projection_storage;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Check the amount of free disk space.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT to_char(sum(disk_space_free_mb)/1024,&amp;#39;999,999,999&amp;#39;) AS
disk_space_free_gb, to_char(sum(disk_space_used_mb)/1024,&amp;#39;999,999,999&amp;#39;) AS
disk_space_used_gb FROM disk_storage;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;adjust-data-types&#34;&gt;Adjust data types&lt;/h2&gt;
&lt;p&gt;Change the Zip and Population columns from VARCHAR to INT.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; UPDATE cities_flex_keys set data_type_guess=&amp;#39;int&amp;#39; WHERE key_name=&amp;#39;Zip&amp;#39;;
=&amp;gt; UPDATE cities_flex_keys set data_type_guess=&amp;#39;int&amp;#39; WHERE key_name=&amp;#39;Population&amp;#39;;
=&amp;gt; COMMIT;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Refresh the cities_flex_view with the new data types&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT build_flextable_view(&amp;#39;cities_flex&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;materialize-the-flex-table&#34;&gt;Materialize the flex table&lt;/h2&gt;
&lt;p&gt;Materialize the flex table and all columns into a persistent database table.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TABLE cities AS SELECT * from cities_flex_view;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;view-user-and-role-information&#34;&gt;View user and role information&lt;/h2&gt;
&lt;p&gt;View user information.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT user_name, is_super_user, resource_pool, memory_cap_kb, temp_space_cap_kb, run_time_cap FROM users;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Identify users.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM user_sessions;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View queries by user.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM query_profiles WHERE user_name ILIKE &amp;#39;%dbadmin%&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View roles.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM roles;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;view-database-information&#34;&gt;View database information&lt;/h2&gt;
&lt;p&gt;View resource pool assignments.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT user_name, resource_pool FROM users;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View table information.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT table_name, is_flextable, is_temp_table, is_system_table, count(*) FROM tables GROUP by 1,2,3,4;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View projection information.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT is_segmented, is_aggregate_projection, has_statistics, is_super_projection, count(*) FROM projections GROUP by 1,2,3,4,5;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View update information.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT substr(query, 0, instr(query, &amp;#39;&amp;#39;)+1) count(*) FROM (SELECT transaction_id, statement_id, upper(query::varchar(30000)) as query FROM query_profiles
WHERE regexp_like(query,&amp;#39;^\s*update\s&amp;#39;,&amp;#39;i&amp;#39;)) sq GROUP BY 1 ORDER BY 1;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View active events.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM active_events WHERE event_problem_description NOT ILIKE &amp;#39;%state to UP&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View backups.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT * FROM database_backups;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View disk storage.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name, storage_path, storage_usage, storage_status, disk_space_free_percent FROM disk_storage;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View long-running queries&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT query_duration_us/1000000/60 AS query_duration_mins, table_name, user_name, processed_row_count AS rows_processed, substr(query,0,70) FROM query_profiles
ORDER BY query_duration_us DESCLIMIT 250;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View sizes and counts of Read Optimized Store (ROS) containers.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name, projection_name, sum(ros_count), sum(ros_used_bytes) FROM projection_storage GROUP BY 1,2 HAVING sum(ros_count) &amp;gt;= 50
ORDER BY 3 DESC LIMIT 250;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;view-license-information&#34;&gt;View license information&lt;/h2&gt;
&lt;p&gt;View license consumption.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT GET_COMPLIANCE_STATUS();
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;View how the database complies with your license.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT AUDIT(&amp;#39;&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Audit the database to check if it complies with raw storage allowance of your license.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT AUDIT_LICENSE_SIZE;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Compare storage size of database the database and your license.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT /*+(license_utilization)*/
audit_start_timestamp,
database_size_bytes / (1024^3) AS database_size_gb,
license_size_bytes / (1024^3) AS license_size_gb, usage_percent
FROM v_catalog.license_audits ORDER BYaudit_start_timestamp DESC LIMIT 30;
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Getting-Started: Connecting clients</title>
      <link>/en/getting-started/quickstart/connecting-clients/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/getting-started/quickstart/connecting-clients/</guid>
      <description>
        
        
        &lt;p&gt;OpenText™ Analytics Database supports several third-party clients. A list of the database client drivers can be found &lt;a href=&#34;https://www.vertica.com/download/vertica/client-drivers/&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;connecting-to-dbvisualizer&#34;&gt;Connecting to DbVisualizer&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Download the &lt;a href=&#34;https://www.dbvis.com/&#34;&gt;DbVisualizer client application&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create a database. Database Menu -&amp;gt; Create Database Connection.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Specify a name for the connection.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &amp;quot;Driver (JDBC)&amp;quot; field, specify Vertica.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &amp;quot;Database Server&amp;quot; field, specify an IP address.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &amp;quot;Database Port&amp;quot; field, specify a port number.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &amp;quot;Database Name&amp;quot; field, specify a database name.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &amp;quot;Database Userid&amp;quot; field, specify a username.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &amp;quot;Database Password&amp;quot; field, specify a password.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use the &amp;quot;ping&amp;quot; function to test the connection.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;connecting-to-tableau&#34;&gt;Connecting to tableau&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Download &lt;a href=&#34;https://www.tableau.com&#34;&gt;Tableau&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open Tableau Desktop.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select Server Connection.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select Vertica as the server type.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set the Server IP.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set the Port to &amp;quot;vdb&amp;quot;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sign into the database.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

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