<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Configuration procedure</title>
    <link>/en/admin/configuring-db/config-procedure/</link>
    <description>Recent content in Configuration procedure on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/configuring-db/config-procedure/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Prepare disk storage locations</title>
      <link>/en/admin/configuring-db/config-procedure/prepare-disk-storage-locations/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/prepare-disk-storage-locations/</guid>
      <description>
        
        
        &lt;p&gt;You must create and specify directories in which to store your catalog and data files (&lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/physical-schema/&#34; title=&#34;Consists of a set of projections used to store data on disk.&#34;&gt;physical schema&lt;/a&gt;). You can specify these locations when you install or configure the database, or later during database operations. Both the catalog and data directories must be owned by the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;database superuser&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The directory you specify for database catalog files (the catalog path) is used across all nodes in the cluster. For example, if you specify /home/catalog as the catalog directory, the database uses that catalog path on all nodes. The catalog directory should always be separate from any data file directories.

&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 use a shared directory for more than one node. Data and catalog directories must be distinct for each node. Multiple nodes must not be allowed to write to the same data or catalog directory.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The data path you designate is also used across all nodes in the cluster. Specifying that data should be stored in /home/data, the database uses this path on all database nodes.&lt;/p&gt;
&lt;p&gt;Do not use a single directory to contain both catalog and data files. You can store the catalog and data directories on different drives, which can be either on drives local to the host (recommended for the catalog directory) or on a shared storage location, such as an external disk enclosure or a SAN.&lt;/p&gt;
&lt;p&gt;Before you specify a catalog or data path, be sure the parent directory exists on all nodes of your database. Creating a database in admintools also creates the catalog and data directories, but the parent directory must exist on each node.&lt;/p&gt;
&lt;p&gt;You do not need to specify a disk storage location during installation. However, you can do so by using the &lt;code&gt;--data-dir&lt;/code&gt; parameter to the &lt;code&gt;install_vertica&lt;/code&gt; script. See &lt;a href=&#34;../../../../en/setup/set-up-on-premises/install-using-command-line/install-with-installation-script/specifying-disk-storage-location-during-installation/#&#34;&gt;Specifying disk storage location during installation&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Disk space requirements for the database</title>
      <link>/en/admin/configuring-db/config-procedure/disk-space-requirements/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/disk-space-requirements/</guid>
      <description>
        
        
        &lt;p&gt;In addition to actual data storage, the database requires disk space for several data reorganization operations, such as &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/mergeout/&#34; title=&#34;&#34;&gt;mergeout&lt;/a&gt; and &lt;a href=&#34;../../../../en/admin/managing-db/managing-nodes/&#34;&gt;managing nodes&lt;/a&gt; in the cluster. For best results, disk utilization per node should be no more than sixty percent (60%) for a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/k-safety/&#34; title=&#34;For more information, see Designing for K-Safety.&#34;&gt;K-Safe=1&lt;/a&gt; database to allow such operations to proceed.&lt;/p&gt;
&lt;p&gt;In addition, disk space is temporarily required by certain query execution operators, such as hash joins and sorts, in the case when they cannot be completed in memory (RAM). Such operators might be encountered during queries, recovery, refreshing projections, and so on. The amount of disk space needed (known as &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/temp-space/&#34; title=&#34;Disk space temporarily occupied by temporary files created by certain query execution operations, such as hash joins and sorts, in the case when they have to spill to disk.&#34;&gt;temp space&lt;/a&gt;) depends on the nature of the queries, amount of data on the node and number of concurrent users on the system. By default, any unused disk space on the data disk can be used as temp space. However, it is recommended that you provision temp space separate from data disk space.&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/prepare-disk-storage-locations/configuring-disk-usage-to-optimize-performance/#&#34;&gt;Configuring disk usage to optimize performance&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Disk space requirements for Management Console</title>
      <link>/en/admin/configuring-db/config-procedure/disk-space-requirements-mc/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/disk-space-requirements-mc/</guid>
      <description>
        
        
        &lt;p&gt;You can install Management Console on any node in the cluster, so it has no special disk requirements other than &lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/disk-space-requirements/&#34;&gt;disk space you allocate for your database cluster&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Prepare the logical schema script</title>
      <link>/en/admin/configuring-db/config-procedure/prepare-logical-schema-script/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/prepare-logical-schema-script/</guid>
      <description>
        
        
        &lt;p&gt;Designing a logical schema for an OpenText™ Analytics Database is no different from designing one for any other SQL database. Details are described more fully in &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/#&#34;&gt;Designing a logical schema&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To create your logical schema, prepare a SQL script (plain text file, typically with an extension of &lt;em&gt;.&lt;/em&gt;&lt;code&gt;sql&lt;/code&gt;) that:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Creates additional schemas (as necessary). See &lt;a href=&#34;../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/#&#34;&gt;Using multiple schemas&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Creates the tables and column &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;constraints&lt;/a&gt; in your database using the &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-table/#&#34;&gt;CREATE TABLE&lt;/a&gt; command.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Defines the necessary table constraints using the &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-table/#&#34;&gt;ALTER TABLE&lt;/a&gt; command.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Defines any views on the table using the &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-view/#&#34;&gt;CREATE VIEW&lt;/a&gt; command.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can generate a script file using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A schema designer application.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A schema extracted from an existing database.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A text editor.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;One of the example database &lt;code&gt;example-name_define_schema.sql&lt;/code&gt; scripts as a template. (See the example database directories in 
&lt;code&gt;/opt/vertica/examples&lt;/code&gt;.)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In your script file, make sure that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Each statement ends with a semicolon.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You use supported &lt;a href=&#34;../../../../en/sql-reference/data-types/&#34;&gt;data types&lt;/a&gt;, as described in the SQL Reference Manual.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once you have created a database, you can test your schema script by executing it as described in &lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/create-logical-schema/#&#34;&gt;Create the logical schema&lt;/a&gt;. If you encounter errors, drop all tables, correct the errors, and run the script again.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Prepare data files</title>
      <link>/en/admin/configuring-db/config-procedure/prepare-data-files/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/prepare-data-files/</guid>
      <description>
        
        
        &lt;p&gt;Prepare two sets of data files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Test data files. Use test files to test the database after the partial data load. If possible, use part of the actual data files to prepare the test data files.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Actual data files. Once the database has been tested and optimized, use your data files for your initial &lt;a href=&#34;../../../../en/data-load/#&#34;&gt;Data load&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;how-to-name-data-files&#34;&gt;How to name data files&lt;/h2&gt;
&lt;p&gt;Name each data file to match the corresponding table in the logical schema. Case does not matter.&lt;/p&gt;
&lt;p&gt;Use the extension &lt;code&gt;.tbl&lt;/code&gt; or whatever you prefer. For example, if a table is named &lt;code&gt;Stock_Dimension&lt;/code&gt;, name the corresponding data file &lt;code&gt;stock_dimension.tbl&lt;/code&gt;. When using multiple data files, append &lt;code&gt;_nnn&lt;/code&gt; (where &lt;em&gt;nnn&lt;/em&gt; is a positive integer in the range 001 to 999) to the file name. For example, &lt;code&gt;stock_dimension.tbl_001&lt;/code&gt;, &lt;code&gt;stock_dimension.tbl_002&lt;/code&gt;, and so on.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Prepare load scripts</title>
      <link>/en/admin/configuring-db/config-procedure/prepare-load-scripts/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/prepare-load-scripts/</guid>
      <description>
        
        
        
&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 postpone this step if your goal is to test a logical schema design for validity.

&lt;/div&gt;
&lt;p&gt;Prepare SQL scripts to load data directly into physical storage using &lt;a href=&#34;../../../../en/sql-reference/statements/copy/#&#34;&gt;COPY&lt;/a&gt; on &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;, or through &lt;a href=&#34;../../../../en/connecting-to/client-libraries/accessing/ccpp/odbc-architecture/&#34;&gt;ODBC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You need scripts that load:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Large tables&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Small tables&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It is recommended that you load large tables using multiple files. To test the load process, use files of 10GB to 50GB in size. This size provides several advantages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;You can use one of the data files as a sample data file for the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/db-designer/&#34; title=&#34;A tool that analyzes a logical schema definition, sample queries, and sample data, and creates a physical schema () in the form of a SQL script that you deploy automatically or manually.&#34;&gt;Database Designer&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You can load just enough data to &lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/perform-partial-data-load/#&#34;&gt;Perform a partial data load&lt;/a&gt; before you load the remainder.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If a single load fails and rolls back, you do not lose an excessive amount of time.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Once the load process is tested, for multi-terabyte tables, break up the full load in file sizes of 250–500GB.&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/data-load/#&#34;&gt;Data load&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/data-load/using-load-scripts/#&#34;&gt;Using load scripts&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/data-load/distributing-load/#&#34;&gt;Distributing a load&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/constraints/constraint-enforcement/#&#34;&gt;Constraint enforcement&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/data-load/handling-messy-data/#&#34;&gt;Handling messy data&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

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

You can use the load scripts included in the example databases as templates.

&lt;/div&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Create an optional sample query script</title>
      <link>/en/admin/configuring-db/config-procedure/create-an-optional-sample-query-script/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/create-an-optional-sample-query-script/</guid>
      <description>
        
        
        &lt;p&gt;The purpose of a sample query script is to test your schema and load scripts for errors.&lt;/p&gt;
&lt;p&gt;Include a sample of queries your users are likely to run against the database. If you don&#39;t have any real queries, just write simple SQL that collects counts on each of your tables. Alternatively, you can skip this step.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Create an empty database</title>
      <link>/en/admin/configuring-db/config-procedure/create-an-empty-db/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/create-an-empty-db/</guid>
      <description>
        
        
        &lt;p&gt;Two options are available for creating an empty database:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Using the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/mc/&#34; title=&#34;A database management tool that provides a unified view of your OpenText&amp;amp;trade; Analytics Database and lets you monitor multiple clusters from a single point of access.&#34;&gt;Management Console&lt;/a&gt;. For details, see &lt;a href=&#34;../../../../en/mc/db-management/creating-db-using-mc/#&#34;&gt;Creating a database using MC&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Using &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/admin-tools/&#34; title=&#34;OpenText&amp;amp;trade; Analytics Database Administration Tools provides a graphical user interface for managing the database.&#34;&gt;Administration tools&lt;/a&gt; .&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Although you can create more than one database (for example, one for production and one for testing), there can be only one active database for each installation of OpenText™ Analytics Database.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Create the logical schema</title>
      <link>/en/admin/configuring-db/config-procedure/create-logical-schema/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/create-logical-schema/</guid>
      <description>
        
        
        &lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Connect to the database&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In the Administration Tools Main Menu, click &lt;strong&gt;Connect to Database&lt;/strong&gt; and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../en/connecting-to/client-libraries/accessing/c/connecting-to-db/opening-and-closing-db-connection-ado-net/&#34;&gt;Connecting to the Database&lt;/a&gt; for details.&lt;/p&gt;


&lt;p&gt;The vsql welcome script appears:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Welcome to vsql, the Vertica Analytic Database interactive terminal.
Type:  \h or \? for help with vsql commands
       \g or terminate with semicolon to execute query
       \q to quit

=&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Run the logical schema script&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Using the &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/i/&#34;&gt;\i meta-command&lt;/a&gt; in vsql to run the SQL &lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/prepare-logical-schema-script/&#34;&gt;logical schema script&lt;/a&gt; that you prepared earlier.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Disconnect from the database&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Use the &lt;code&gt;\q&lt;/code&gt; meta-command in vsql to return to the Administration Tools.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Perform a partial data load</title>
      <link>/en/admin/configuring-db/config-procedure/perform-partial-data-load/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/perform-partial-data-load/</guid>
      <description>
        
        
        &lt;p&gt;It is recommended that for large tables, you perform a partial data load and then test your database before completing a full data load. This load should load a representative amount of data.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Load the small tables.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Load the small table data files using the SQL &lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/prepare-load-scripts/&#34;&gt;load scripts&lt;/a&gt; and &lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/prepare-data-files/&#34;&gt;data files&lt;/a&gt; you prepared earlier.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Partially load the large tables.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Load 10GB to 50GB of table data for each table using the SQL &lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/prepare-load-scripts/&#34;&gt;load scripts&lt;/a&gt; and &lt;a href=&#34;../../../../en/admin/configuring-db/config-procedure/prepare-data-files/&#34;&gt;data files&lt;/a&gt; that you prepared earlier.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For more information about projections, see &lt;a href=&#34;../../../../en/admin/projections/#&#34;&gt;Projections&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Test the database</title>
      <link>/en/admin/configuring-db/config-procedure/test-db/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/test-db/</guid>
      <description>
        
        
        &lt;p&gt;Test the database to verify that it is running as expected.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Check queries for syntax errors and execution times.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Use the vsql &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/timing/&#34;&gt;\timing meta-command&lt;/a&gt; to enable the display of query execution time in milliseconds.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Execute the SQL sample query script that you prepared earlier.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Execute several ad hoc queries.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Optimize query performance</title>
      <link>/en/admin/configuring-db/config-procedure/optimize-query-performance/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/optimize-query-performance/</guid>
      <description>
        
        
        &lt;p&gt;Optimizing the database consists of optimizing for compression and tuning for queries. (See &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/#&#34;&gt;Creating a database design&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;To optimize the database, use the Database Designer to create and deploy a design for optimizing the database. See &lt;a href=&#34;../../../../en/getting-started/db-designer/#&#34;&gt;Using Database Designer to create a comprehensive design&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After you run the Database Designer, use the techniques described in &lt;a href=&#34;../../../../en/data-analysis/query-optimization/#&#34;&gt;Query optimization&lt;/a&gt; to improve the performance of certain types of queries.

&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 response time depends on factors such as type and size of the application query, database design, data size and data types stored, available computational power, and network bandwidth. Adding nodes to a database cluster does not necessarily improve the system response time for every query, especially if the response time is already short, e.g., less then 10 seconds, or the response time is not hardware bound.

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

      </description>
    </item>
    
    <item>
      <title>Admin: Complete the data load</title>
      <link>/en/admin/configuring-db/config-procedure/complete-data-load/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/complete-data-load/</guid>
      <description>
        
        
        &lt;p&gt;To complete the load:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Monitor system resource usage.&lt;/p&gt;
&lt;p&gt;Continue to run the &lt;code&gt;top&lt;/code&gt;, &lt;code&gt;free&lt;/code&gt;, and &lt;code&gt;df&lt;/code&gt; utilities and watch them while your load scripts are running (as described in &lt;a href=&#34;../../../../en/admin/monitoring/monitoring-linux-resource-usage/#&#34;&gt;Monitoring Linux resource usage&lt;/a&gt;). You can do this on any or all nodes in the cluster. Make sure that the system is not swapping excessively (watch &lt;code&gt;kswapd&lt;/code&gt; in &lt;code&gt;top&lt;/code&gt;) or running out of swap space (watch for a large amount of used swap space in free).&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;

The database requires a dedicated server. If your loader or other processes take up significant amounts of RAM, it can result in swapping.

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Complete the large table loads.&lt;/p&gt;
&lt;p&gt;Run the remainder of the large table load scripts.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Test the optimized database</title>
      <link>/en/admin/configuring-db/config-procedure/test-optimized-db/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/test-optimized-db/</guid>
      <description>
        
        
        &lt;p&gt;Check query execution times to test your optimized design:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Use the vsql &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/timing/&#34;&gt;&lt;code&gt;\timing&lt;/code&gt;&lt;/a&gt; meta-command to enable the display of query execution time in milliseconds.&lt;/p&gt;
&lt;p&gt;Execute a SQL sample query script to test your schema and load scripts for errors.&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;

Include a sample of queries your users are likely to run against the database. If you don&#39;t have any real queries, just write simple SQL that collects counts on each of your tables. Alternatively, you can skip this step.

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Execute several ad hoc queries&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Run &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/admin-tools/&#34; title=&#34;OpenText&amp;amp;trade; Analytics Database Administration Tools provides a graphical user interface for managing the database.&#34;&gt;Administration tools&lt;/a&gt; and select &lt;a href=&#34;../../../../en/connecting-to/client-libraries/accessing/c/connecting-to-db/opening-and-closing-db-connection-ado-net/&#34;&gt;Connect to Database&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use the &lt;a href=&#34;../../../../en/connecting-to/using-vsql/meta-commands/i/&#34;&gt;\i meta-command&lt;/a&gt; to execute the query script; for example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vmartdb=&amp;gt; \i vmart_query_03.sql  customer_name   | annual_income
------------------+---------------
 James M. McNulty |        999979
 Emily G. Vogel   |        999998
(2 rows)
Time: First fetch (2 rows): 58.411 ms. All rows formatted: 58.448 ms
vmartdb=&amp;gt; \i vmart_query_06.sql
 store_key | order_number | date_ordered
-----------+--------------+--------------
        45 |       202416 | 2004-01-04
       113 |        66017 | 2004-01-04
       121 |       251417 | 2004-01-04
        24 |       250295 | 2004-01-04
         9 |       188567 | 2004-01-04
       166 |        36008 | 2004-01-04
        27 |       150241 | 2004-01-04
       148 |       182207 | 2004-01-04
       198 |        75716 | 2004-01-04
(9 rows)
Time: First fetch (9 rows): 25.342 ms. All rows formatted: 25.383 ms
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Once the database is optimized, it should run queries efficiently. If you discover queries that you want to optimize, you can modify and update the design &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/general-design-settings/#Incremen&#34;&gt;incrementally&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Implement locales for international data sets</title>
      <link>/en/admin/configuring-db/config-procedure/implement-locales-international-data-sets/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/implement-locales-international-data-sets/</guid>
      <description>
        
        
        &lt;p&gt;Locale specifies the user&#39;s language, country, and any special variant preferences, such as collation. The database uses locale to determine the behavior of certain string functions. Locale also determines the collation for various SQL commands that require ordering and comparison, such as aggregate &lt;code&gt;GROUP BY&lt;/code&gt; and &lt;code&gt;ORDER BY&lt;/code&gt; clauses, joins, and the analytic &lt;code&gt;ORDER BY&lt;/code&gt; clause.&lt;/p&gt;
&lt;p&gt;The default locale for a database is &lt;code&gt;en_US@collation=binary&lt;/code&gt; (English US). You can define a new default locale that is used for all sessions on the database. You can also override the locale for individual sessions. However, projections are always collated using the default &lt;code&gt;en_US@collation=binary&lt;/code&gt; collation, regardless of the session collation. Any locale-specific collation is applied at query time.&lt;/p&gt;
&lt;p&gt;If you set the locale to null, the database sets the locale to &lt;code&gt;en_US_POSIX&lt;/code&gt;. You can set the locale back to the default locale and collation by issuing the vsql meta-command &lt;code&gt;\locale&lt;/code&gt;. For example:

&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;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; set locale to &amp;#39;&amp;#39;;
INFO 2567:  Canonical locale: &amp;#39;en_US_POSIX&amp;#39;
Standard collation: &amp;#39;LEN&amp;#39;
English (United States, Computer)
SET
=&amp;gt; \locale en_US@collation=binary;
INFO 2567:  Canonical locale: &amp;#39;en_US&amp;#39;
Standard collation: &amp;#39;LEN_KBINARY&amp;#39;
English (United States)
=&amp;gt;  \locale
en_US@collation-binary;
&lt;/code&gt;&lt;/pre&gt;&lt;blockquote&gt;
&lt;/blockquote&gt;


&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;You can set locale through &lt;a href=&#34;../../../../en/connecting-to/client-libraries/accessing/ccpp/loading-data/&#34;&gt;ODBC&lt;/a&gt;, &lt;a href=&#34;../../../../en/connecting-to/client-libraries/accessing/java/creating-and-configuring-connection/setting-locale-jdbc-sessions/&#34;&gt;JDBC&lt;/a&gt;, and &lt;a href=&#34;../../../../en/connecting-to/client-libraries/accessing/c/setting-locale-ado-net-sessions/&#34;&gt;ADO.net&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&#34;icu-locale-support&#34;&gt;ICU locale support&lt;/h2&gt;
&lt;p&gt;The database uses the ICU library for locale support; you must specify locale using the ICU locale syntax. The locale used by the database session is not derived from the operating system (through the &lt;code&gt;LANG&lt;/code&gt; variable), so it is recommended that you set the &lt;code&gt;LANG&lt;/code&gt; for each node running vsql, as described in the next section.&lt;/p&gt;
&lt;p&gt;While ICU library services can specify collation, currency, and calendar preferences, the database supports only the collation component. Any keywords not relating to collation are rejected. Projections are always collated using the &lt;code&gt;en_US@collation=binary&lt;/code&gt; collation regardless of the session collation. Any locale-specific collation is applied at query time.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-datestyle/&#34;&gt;&lt;code&gt;SET DATESTYLE TO&lt;/code&gt;&lt;/a&gt; &lt;code&gt;...&lt;/code&gt; command provides some aspects of the calendar, but the database supports only dollars as currency.&lt;/p&gt;
&lt;h2 id=&#34;changing-db-locale-for-a-session&#34;&gt;Changing DB locale for a session&lt;/h2&gt;
&lt;p&gt;This examples sets the session locale to Thai.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;At the operating-system level for each node running vsql, set the &lt;code&gt;LANG&lt;/code&gt; variable to the locale language as follows:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;export LANG=th_TH.UTF-8
&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;

If setting the &lt;code&gt;LANG=&lt;/code&gt; as shown does not work, the operating system support for locales may not be installed.

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For each database session (from ODBC/JDBC or vsql) set the language locale.&lt;/p&gt;
&lt;p&gt;From vsql:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\locale th_TH
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;From ODBC/JDBC:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;#34;SET LOCALE TO th_TH;&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In PUTTY (or ssh terminal), change the settings as follows:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;settings &amp;gt; window &amp;gt; translation &amp;gt; UTF-8
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Apply&lt;/strong&gt; and then click &lt;strong&gt;Save&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;All data loaded must be in UTF-8 format, not an ISO format, as described in &lt;a href=&#34;../../../../en/data-load/data-formats/delimited-data/#&#34;&gt;Delimited data&lt;/a&gt;. Character sets like ISO 8859-1 (Latin1), which are incompatible with UTF-8, are not supported, so functions like SUBSTRING do not work correctly for multibyte characters. Thus, settings for locale should &lt;em&gt;not&lt;/em&gt; work correctly. If the translation setting ISO-8859-11:2001 (Latin/Thai) works, the data is loaded incorrectly. To convert data correctly, use a utility program such as Linux 
&lt;code&gt;&lt;a href=&#34;http://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.13/iconv.1.html&#34;&gt;iconv&lt;/a&gt;&lt;/code&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 maximum length parameter for VARCHAR and CHAR data type refers to the number of octets (bytes) that can be stored in that field, not the number of characters. When using multi-byte UTF-8 characters, make sure to size fields to accommodate from 1 to 4 bytes per character, depending on the data.

&lt;/div&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/admin/about-locale/supported-locales/#&#34;&gt;Supported locales&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/admin/about-locale/#&#34;&gt;About locale&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-locale/#&#34;&gt;SET LOCALE&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;http://userguide.icu-project.org/locale&#34;&gt;ICU User Guide&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Using time zones</title>
      <link>/en/admin/configuring-db/config-procedure/using-time-zones-with/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/using-time-zones-with/</guid>
      <description>
        
        
        &lt;p&gt;The database uses the public domain &lt;a href=&#34;https://www.iana.org/time-zones&#34;&gt;tz database&lt;/a&gt; (time zone database), which contains code and data that represent the history of local time for locations around the globe. This database organizes time zone and daylight saving time data by partitioning the world into timezones whose clocks all agree on timestamps that are later than the POSIX Epoch (1970-01-01 00:00:00 UTC). Each timezone has a unique identifier. Identifiers typically follow the convention &lt;em&gt;&lt;code&gt;area&lt;/code&gt;&lt;/em&gt;&lt;code&gt;/&lt;/code&gt;&lt;em&gt;&lt;code&gt;location&lt;/code&gt;&lt;/em&gt;, where &lt;em&gt;&lt;code&gt;area&lt;/code&gt;&lt;/em&gt; is a continent or ocean, and &lt;em&gt;&lt;code&gt;location&lt;/code&gt;&lt;/em&gt; is a specific location within the area—for example, Africa/Cairo, America/New_York, and Pacific/Honolulu.

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
IANA acknowledge that 1970 is an arbitrary cutoff. They note the problems that face moving the cutoff earlier &amp;quot;due to the wide variety of local practices before computer timekeeping became prevalent.&amp;quot; IANA&#39;s own description of the tz database suggests that users should regard historical dates and times, especially those that predate the POSIX epoch date, with a healthy measure of skepticism. For details, see &lt;a href=&#34;https://data.iana.org/time-zones/theory.html&#34;&gt;Theory and pragmatics of the tz code and data&lt;/a&gt;.
&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The database uses the &lt;code&gt;TZ&lt;/code&gt; environment variable (if set) on each node for the default current time zone. Otherwise, the database uses the operating system time zone.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;TZ&lt;/code&gt; variable can be set by the operating system during login (see &lt;code&gt;/etc/profile&lt;/code&gt;, &lt;code&gt;/etc/profile.d&lt;/code&gt;, or &lt;code&gt;/etc/bashrc&lt;/code&gt;) or by the user in &lt;code&gt;.profile&lt;/code&gt;, &lt;code&gt;.bashrc&lt;/code&gt; or &lt;code&gt;.bash-profile&lt;/code&gt;. &lt;code&gt;TZ&lt;/code&gt; must be set to the same value on each node when you start the database.&lt;/p&gt;
&lt;p&gt;The following command returns the current time zone for your database:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SHOW TIMEZONE;
   name   |     setting
----------+------------------
 timezone | America/New_York
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can also set the time zone for a single session with &lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-time-zone/#&#34;&gt;SET TIME ZONE&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;conversion-and-storage-of-datetime-data&#34;&gt;Conversion and storage of date/time data&lt;/h2&gt;
&lt;p&gt;There is no database default time zone. &lt;a href=&#34;../../../../en/sql-reference/data-types/datetime-data-types/timestamp-time-zone/&#34;&gt;TIMESTAMPTZ&lt;/a&gt; (TIMESTAMP WITH TIMEZONE) data is converted from the current local time and stored as GMT/UTC (Greenwich Mean Time/Coordinated Universal Time).&lt;/p&gt;
&lt;p&gt;When TIMESTAMPTZ data is used, data is converted back to the current local time zone, which might be different from the local time zone where the data was stored. This conversion takes into account daylight saving time (summer time), depending on the year and date to determine when daylight saving time begins and ends.&lt;/p&gt;
&lt;p&gt;TIMESTAMP WITHOUT TIMEZONE data stores the timestamp as given, and retrieves it exactly as given. The current time zone is ignored. The same is true for TIME WITHOUT TIMEZONE. For TIME WITH TIMEZONE (TIMETZ), however, the current time zone setting is stored along with the given time, and that time zone is used on retrieval.

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

It is recommended that you use TIMESTAMPTZ, not TIMETZ.

&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;querying-datatime-data&#34;&gt;Querying data/time data&lt;/h2&gt;
&lt;p&gt;TIMESTAMPTZ uses the current time zone on both input and output, as in the following example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TEMP TABLE s (tstz TIMESTAMPTZ);=&amp;gt; SET TIMEZONE TO &amp;#39;America/New_York&amp;#39;;
=&amp;gt; INSERT INTO s VALUES (&amp;#39;2009-02-01 00:00:00&amp;#39;);
=&amp;gt; INSERT INTO s VALUES (&amp;#39;2009-05-12 12:00:00&amp;#39;);
=&amp;gt; SELECT tstz AS &amp;#39;Local timezone&amp;#39;, tstz AT TIMEZONE &amp;#39;America/New_York&amp;#39; AS &amp;#39;America/New_York&amp;#39;,
   tstz AT TIMEZONE &amp;#39;GMT&amp;#39; AS &amp;#39;GMT&amp;#39; FROM s;
     Local timezone     |  America/New_York   |         GMT
------------------------+---------------------+---------------------
 2009-02-01 00:00:00-05 | 2009-02-01 00:00:00 | 2009-02-01 05:00:00
 2009-05-12 12:00:00-04 | 2009-05-12 12:00:00 | 2009-05-12 16:00:00
(2 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The &lt;code&gt;-05&lt;/code&gt; in the Local time zone column shows that the data is displayed in EST, while &lt;code&gt;-04&lt;/code&gt; indicates EDT. The other two columns show the TIMESTAMP WITHOUT TIMEZONE at the specified time zone.&lt;/p&gt;
&lt;p&gt;The next example shows what happens if the current time zone is changed to GMT:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET TIMEZONE TO &amp;#39;GMT&amp;#39;;=&amp;gt; SELECT tstz AS &amp;#39;Local timezone&amp;#39;, tstz AT TIMEZONE &amp;#39;America/New_York&amp;#39; AS
   &amp;#39;America/New_York&amp;#39;, tstz AT TIMEZONE &amp;#39;GMT&amp;#39; as &amp;#39;GMT&amp;#39; FROM s;
     Local timezone     |  America/New_York   |         GMT
------------------------+---------------------+---------------------
 2009-02-01 05:00:00+00 | 2009-02-01 00:00:00 | 2009-02-01 05:00:00
 2009-05-12 16:00:00+00 | 2009-05-12 12:00:00 | 2009-05-12 16:00:00
(2 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The +00 in the Local time zone column indicates that TIMESTAMPTZ is displayed in GMT.&lt;/p&gt;
&lt;p&gt;The approach of using TIMESTAMPTZ fields to record events captures the GMT of the event, as expressed in terms of the local time zone. Later, it allows for easy conversion to any other time zone, either by setting the local time zone or by specifying an explicit AT TIMEZONE clause.&lt;/p&gt;
&lt;p&gt;The following example shows how TIMESTAMP WITHOUT TIMEZONE fields work in the database.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE TEMP TABLE tnoz (ts TIMESTAMP);=&amp;gt; INSERT INTO tnoz VALUES(&amp;#39;2009-02-01 00:00:00&amp;#39;);
=&amp;gt; INSERT INTO tnoz VALUES(&amp;#39;2009-05-12 12:00:00&amp;#39;);
=&amp;gt; SET TIMEZONE TO &amp;#39;GMT&amp;#39;;
=&amp;gt; SELECT ts AS &amp;#39;No timezone&amp;#39;, ts AT TIMEZONE &amp;#39;America/New_York&amp;#39; AS
   &amp;#39;America/New_York&amp;#39;, ts AT TIMEZONE &amp;#39;GMT&amp;#39; AS &amp;#39;GMT&amp;#39; FROM tnoz;
      No timezone    |    America/New_York    |          GMT
---------------------+------------------------+------------------------
 2009-02-01 00:00:00 | 2009-02-01 05:00:00+00 | 2009-02-01 00:00:00+00
 2009-05-12 12:00:00 | 2009-05-12 16:00:00+00 | 2009-05-12 12:00:00+00
(2 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The &lt;code&gt;+00&lt;/code&gt; at the end of a timestamp indicates that the setting is TIMESTAMP WITH TIMEZONE in GMT (the current time zone). The America/New_York column shows what the GMT setting was when you recorded the time, assuming you read a normal clock in the America/New_York time zone. What this shows is that if it is midnight in the America/New_York time zone, then it is 5 am GMT.

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

00:00:00 Sunday February 1, 2009 in America/New_York converts to 05:00:00 Sunday February 1, 2009 in GMT.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The GMT column displays the GMT time, assuming the input data was captured in GMT.&lt;/p&gt;
&lt;p&gt;If you don&#39;t set the time zone to GMT, and you use another time zone, for example America/New_York, then the results display in America/New_York with a &lt;code&gt;-05&lt;/code&gt; and &lt;code&gt;-04&lt;/code&gt;, showing the difference between that time zone and GMT.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET TIMEZONE TO &amp;#39;America/New_York&amp;#39;;
=&amp;gt; SHOW TIMEZONE;
    name   |     setting
 ----------+------------------
  timezone | America/New_York
 (1 row)
=&amp;gt; SELECT ts AS &amp;#39;No timezone&amp;#39;, ts AT TIMEZONE &amp;#39;America/New_York&amp;#39; AS
   &amp;#39;America/New_York&amp;#39;, ts AT TIMEZONE &amp;#39;GMT&amp;#39; AS &amp;#39;GMT&amp;#39; FROM tnoz;
      No timezone    |    America/New_York    |          GMT
---------------------+------------------------+------------------------
 2009-02-01 00:00:00 | 2009-02-01 00:00:00-05 | 2009-01-31 19:00:00-05
 2009-05-12 12:00:00 | 2009-05-12 12:00:00-04 | 2009-05-12 08:00:00-04
(2 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In this case, the last column is interesting in that it returns the time in New York, given that the data was captured in GMT.&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/setup/set-up-on-premises/before-you-install/system-user-config/tz-environment-variable/#&#34;&gt;TZ environment variable&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-time-zone/#&#34;&gt;SET TIME ZONE&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/sql-reference/data-types/datetime-data-types/#&#34;&gt;Date/time data types&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Change transaction isolation levels</title>
      <link>/en/admin/configuring-db/config-procedure/change-transaction-isolation-levels/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/config-procedure/change-transaction-isolation-levels/</guid>
      <description>
        
        
        &lt;p&gt;By default, the database uses the &lt;code&gt;READ COMMITTED&lt;/code&gt; isolation level for all sessions. You can change the default isolation level for the database or for a given session.&lt;/p&gt;
&lt;p&gt;A transaction retains its isolation level until it completes, even if the session&#39;s isolation level changes during the transaction. OpenText™ Analytics Database internal processes (such as the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/tuple-mover-tm/&#34; title=&#34;The Tuple Mover manages ROS data storage.&#34;&gt;Tuple Mover&lt;/a&gt; and &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/refresh-projections/&#34; title=&#34;Ensures that all projections on a node are up-to-date (can participate in query execution).&#34;&gt;refresh&lt;/a&gt; operations) and DDL operations always run at the SERIALIZABLE isolation level to ensure consistency.&lt;/p&gt;

&lt;h2 id=&#34;database-isolation-level&#34;&gt;Database isolation level&lt;/h2&gt;
&lt;p&gt;The configuration parameter 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/config-parameters/general-parameters/#TransactionIsolationLevel&#34;&gt;TransactionIsolationLevel&lt;/a&gt;&lt;/code&gt; specifies the database isolation level, and is used as the default for all sessions. Use 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-db/#&#34;&gt;ALTER DATABASE&lt;/a&gt;&lt;/code&gt; to change the default isolation level.For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET TransactionIsolationLevel = &amp;#39;SERIALIZABLE&amp;#39;;
ALTER DATABASE
=&amp;gt; ALTER DATABASE DEFAULT SET TransactionIsolationLevel = &amp;#39;READ COMMITTED&amp;#39;;
ALTER DATABASE
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Changes to the database isolation level only apply to future sessions. Existing sessions and their transactions continue to use their original isolation level.&lt;/p&gt;
&lt;p&gt;Use 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/show-current/#&#34;&gt;SHOW CURRENT&lt;/a&gt;&lt;/code&gt; to view the database isolation level:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SHOW CURRENT TransactionIsolationLevel;
  level   |           name            |    setting
----------+---------------------------+----------------
 DATABASE | TransactionIsolationLevel | READ COMMITTED
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;session-isolation-level&#34;&gt;Session isolation level&lt;/h2&gt;
&lt;p&gt;
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-session-characteristics-as-transaction/#&#34;&gt;SET SESSION CHARACTERISTICS AS TRANSACTION&lt;/a&gt;&lt;/code&gt; changes the isolation level for a specific session. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL SERIALIZABLE;
SET
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Use 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/show/#&#34;&gt;SHOW&lt;/a&gt;&lt;/code&gt; to view the current session&#39;s isolation level:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SHOW TRANSACTION_ISOLATION;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../en/admin/transactions/#&#34;&gt;Transactions&lt;/a&gt;

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