<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vertica Documentation – Configuring the database</title>
    <link>/en/admin/configuring-db/</link>
    <description>Recent content in Configuring the database on Vertica Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/configuring-db/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Configuration procedure</title>
      <link>/en/admin/configuring-db/config-procedure/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/</guid>
      <description>
        
        
        &lt;p&gt;This section describes the tasks required to set up a Vertica database. It assumes that you have a valid license key file, installed the Vertica rpm package, and ran the installation script as described.&lt;/p&gt;
&lt;p&gt;You complete the configuration procedure using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../en/glossary/admin-tools/&#34; title=&#34;Vertica Administration Tools provides a graphical user interface for managing a Vertica database.&#34;&gt;Administration tools&lt;/a&gt;
&lt;p&gt;If you are unfamiliar with Dialog-based user interfaces, read &lt;a href=&#34;../../../en/admin/using-admin-tools/using-admin-tools-interface/&#34;&gt;Using the administration tools interface&lt;/a&gt; before you begin. See also the &lt;a href=&#34;../../../en/admin/using-admin-tools/admin-tools-reference/&#34;&gt;Administration tools reference&lt;/a&gt; for details.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a class=&#34;glosslink&#34; href=&#34;../../../en/glossary/vsql/&#34; title=&#34;For more information, see Installing the vsql Client and the more general topic, Using vsql.&#34;&gt;vsql&lt;/a&gt; interactive interface&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Database Designer, described in &lt;a href=&#34;../../../en/admin/configuring-db/creating-db-design/&#34;&gt;Creating a database design&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

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

You can also perform certain tasks using &lt;a href=&#34;../../../en/mc/&#34;&gt;Management Console&lt;/a&gt;. Those tasks point to the appropriate topic.

&lt;/div&gt;
&lt;h2 id=&#34;continuing-configuring&#34;&gt;Continuing configuring&lt;/h2&gt;
&lt;p&gt;Follow the configuration procedure sequentially as this section describes.&lt;/p&gt;
&lt;p&gt;Vertica strongly recommends that you first experiment with &lt;a href=&#34;../../../en/getting-started/&#34;&gt;creating and configuring a database&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can use this generic configuration procedure several times during the development process, modifying it to fit your changing goals. You can omit steps such as preparing actual data files and sample queries, and run the Database Designer without optimizing for queries. For example, you can create, load, and query a database several times for development and testing purposes, then one final time to create and load the production database.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Configuration parameter management</title>
      <link>/en/admin/configuring-db/config-parameter-management/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-parameter-management/</guid>
      <description>
        
        
        &lt;p&gt;Vertica supports a wide variety of configuration parameters that affect many facets of database behavior. These parameters can be set with the appropriate ALTER statements at one or more levels, listed here in descending order of precedence:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;User (&lt;a href=&#34;../../../en/sql-reference/statements/alter-statements/alter-user/&#34;&gt;ALTER USER&lt;/a&gt;)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Session (&lt;a href=&#34;../../../en/sql-reference/statements/alter-statements/alter-session/&#34;&gt;ALTER SESSION&lt;/a&gt;)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Node (&lt;a href=&#34;../../../en/sql-reference/statements/alter-statements/alter-node/&#34;&gt;ALTER NODE&lt;/a&gt;)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Database (&lt;a href=&#34;../../../en/sql-reference/statements/alter-statements/alter-db/&#34;&gt;ALTER DATABASE&lt;/a&gt;)&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can query system table &lt;a href=&#34;../../../en/sql-reference/system-tables/v-monitor-schema/config-parameters/&#34;&gt;CONFIGURATION_PARAMETERS&lt;/a&gt; to obtain the current settings for all user-accessible parameters. For example, the following query obtains settings for partitioning parameters: their current and default values, which levels they can be set at, and whether changes require a database restart to take effect:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT parameter_name, current_value, default_value, allowed_levels, change_requires_restart
      FROM configuration_parameters  WHERE parameter_name ILIKE &amp;#39;%partitioncount%&amp;#39;;
    parameter_name    | current_value | default_value | allowed_levels | change_requires_restart
----------------------+---------------+---------------+----------------+-------------------------
 MaxPartitionCount    | 1024          | 1024          | NODE, DATABASE | f
 ActivePartitionCount | 1             | 1             | NODE, DATABASE | f
(2 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For details about individual configuration parameters grouped by category, see &lt;a href=&#34;../../../en/sql-reference/config-parameters/&#34;&gt;Configuration parameters&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;setting-and-clearing-configuration-parameters&#34;&gt;Setting and clearing configuration parameters&lt;/h2&gt;
&lt;p&gt;You change specific configuration parameters with the appropriate ALTER statements; the same statements also let you reset configuration parameters to their default values. For example, the following ALTER statements change ActivePartitionCount at the database level from 1 to 2 , and DisablePartitionCount at the session level from 0 to 1:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET ActivePartitionCount = 2;
ALTER DATABASE
=&amp;gt; ALTER SESSION SET DisableAutopartition = 1;
ALTER SESSION
=&amp;gt; SELECT parameter_name, current_value, default_value FROM configuration_parameters
      WHERE parameter_name IN (&amp;#39;ActivePartitionCount&amp;#39;, &amp;#39;DisableAutopartition&amp;#39;);
    parameter_name    | current_value | default_value
----------------------+---------------+---------------
 ActivePartitionCount | 2             | 1
 DisableAutopartition | 1             | 0
(2 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can later reset the same configuration parameters to their default values:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT CLEAR ActivePartitionCount;
ALTER DATABASE
=&amp;gt; ALTER SESSION CLEAR DisableAutopartition;
ALTER DATABASE
=&amp;gt; SELECT parameter_name, current_value, default_value FROM configuration_parameters
      WHERE parameter_name IN (&amp;#39;ActivePartitionCount&amp;#39;, &amp;#39;DisableAutopartition&amp;#39;);
    parameter_name    | current_value | default_value
----------------------+---------------+---------------
 DisableAutopartition | 0             | 0
 ActivePartitionCount | 1             | 1
(2 rows)
&lt;/code&gt;&lt;/pre&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;

Vertica is designed to operate with minimal configuration changes. Be careful to change configuration parameters according to documented guidelines.

&lt;/div&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Designing a logical schema</title>
      <link>/en/admin/configuring-db/designing-logical-schema/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/designing-logical-schema/</guid>
      <description>
        
        
        &lt;p&gt;Designing a logical schema for a Vertica database is the same as designing for any other SQL database. A logical schema consists of objects such as schemas, tables, &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;views&lt;/a&gt; and &lt;a class=&#34;glosslink&#34; href=&#34;../../../en/glossary/referential-integrity/&#34; title=&#34;Consists of a set of constraints (logical schema objects) that define primary key and foreign key columns.&#34;&gt;referential Integrity constraints&lt;/a&gt; that are visible to SQL users. Vertica supports any relational schema design that you choose.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Creating a database design</title>
      <link>/en/admin/configuring-db/creating-db-design/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/</guid>
      <description>
        
        
        &lt;p&gt;A &lt;em&gt;design&lt;/em&gt; is a physical storage plan that optimizes query performance. Data in Vertica is physically stored in projections. When you initially load data into a table using INSERT, COPY (or COPY LOCAL), Vertica creates a default &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;superprojection&lt;/a&gt; for the table. This superprojection ensures that all of the data is available for queries. However, these superprojections might not optimize database performance, resulting in slow query performance and low data compression.&lt;/p&gt;
&lt;p&gt;To improve performance, create a design for your Vertica database that optimizes query performance and data compression. You can create a design in several ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../en/admin/configuring-db/creating-db-design/about-db-designer/&#34;&gt;Use Database Designer&lt;/a&gt;, a toolthat recommends a design for optimal performance.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../en/admin/configuring-db/creating-db-design/creating-custom-designs/&#34;&gt;Manually create a design&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use Database Designer to create an initial design and then manually modify it.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Database Designer can help you minimize how much time you spend on manual database tuning. You can also use Database Designer to redesign the database incrementally as requirements such as workloads change over time.&lt;/p&gt;
&lt;p&gt;Database Designer runs as a background process. This is useful if you have a large design that you want to run overnight. An active SSH session is not required, so design and deploy operations continue to run uninterrupted if the session ends.

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

Vertica recommends that you first globally optimize your database using the Comprehensive setting in Database Designer. If the performance of the comprehensive design is not adequate, you can design custom projections using an incremental design and manually, as described in &lt;a href=&#34;../../../en/admin/configuring-db/creating-db-design/creating-custom-designs/&#34;&gt;Creating custom designs&lt;/a&gt;.

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

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