Skip to the content
LeaplogicLeaplogic
  • Home
  • About Us
  • Contact
SIGN IN
  • Home
  • About Us
  • Contact

  • Getting Started
    • Before You Begin
    • Creating an Account
    • Logging into LeapLogic
    • Reset Password
    • Quick Tour of the Web Interface
    • LeapLogic in 15 minutes
      • Prerequisites
      • Step 1. Log into LeapLogic
      • Step 2. Create Assessment and Get Insights
      • Step 3. Create Transformation Pipeline and See Results
      • Step 4. Edit or Optimize the Transformed Code
      • Step 5: Complete the Transformation Lifecycle
  • Introduction to LeapLogic
    • Overview
    • High Level Architecture
    • Supported Legacy and Cloud Platforms
    • Key Features
  • Workload Assessment
    • Overview
    • Value Proposition
    • Creating Assessment
      • Prerequisites
      • Step 1. Provide Primary Inputs
        • Automation Coverage
      • Step 2. Add the Additional Inputs
        • Table Stat Extraction Steps
          • Teradata
          • Oracle
          • Netezza
      • Step 3. Update the Source Configuration
      • Step 4. Configure the Recommendation Settings
    • Assessment Listing
    • Understanding Insights and Recommendations
      • Volumetric Info
      • EDW
        • Oracle
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • Vertica
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • Snowflake
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • Azure Synapse
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • SQL Server
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • Teradata
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • Netezza
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • Google Big Query
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • Redshift
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • PostgreSQL
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • Duck DB
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • ClickHouse
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • Exasol
          • Highlights
          • Analysis
          • Optimization
          • Lineage
          • Recommendations
          • Downloadable Reports
        • DB2
          • Highlights
          • Analysis
          • Optimization
          • Recommendations
          • Lineage
          • Downloadable Reports
      • ETL
        • Informatica
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • Ab Initio
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • DataStage
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • Talend
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • SSIS
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • Informatica BDM
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • Oracle Data Integrator
          • Highlights
          • Analysis
          • Downloadable Reports
        • Pentaho
          • Highlights
          • Analysis
          • Downloadable Reports
        • Azure Data Factory
          • ARM Template
          • Highlights
          • Analysis
          • Downloadable Reports
        • Matillion
          • Highlights
          • Analysis
          • Downloadable Reports
        • SnapLogic
          • Highlights
          • Analysis
          • Downloadable Reports
      • Orchestration
        • AutoSys
          • Highlights
          • Analysis
          • Downloadable Reports
        • Control-M
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • SQL Server
          • Highlights
          • Analysis
      • BI
        • OBIEE
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • Tableau
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • IBM Cognos
          • Highlights
          • Analysis
          • Downloadable Reports
        • MicroStrategy
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • Power BI
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • SSRS
          • Highlights
          • Analysis
          • Downloadable Reports
        • SAP BO
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
        • WebFOCUS
          • Highlights
          • Analysis
          • Downloadable Reports
      • Analytics
        • SAS
          • Highlight
          • Analysis
          • Lineage
          • Downloadable Reports
        • Alteryx
          • Highlights
          • Analysis
          • Lineage
          • Downloadable Reports
      • Integrated Assessment (EDW, ETL, Orchestration, BI)
        • Highlights
        • Analysis
        • Optimization
        • Lineage
        • Recommendations
    • Managing Assessment Reports
      • Downloading Report
      • Input Report Utility
      • View Configuration
    • Complexity Calculation Logic
    • Key Benefits
    • Ad hoc Query
  • Metadata Management
    • Overview
    • Introduction to Data Catalog
      • Managing Data Catalog
        • Building Data Catalog
        • Insights to Data Catalog
        • Managing the Repository and Data Source
      • Creating Repository (Repo)
      • Creating Data Source
    • Tag Management
    • Key benefits
  • Batch Processing using Pipeline
    • Introduction
    • Designing Pipeline
      • How to create a pipeline
        • Configuring Migration Stage
          • Schema Optimization
        • Configuring Transformation Stage
          • On-premises to Cloud
          • Cloud-to-Cloud
          • LeapLogic Express
        • Configuring Validation Stage
          • Data Validation
            • Table
            • File
            • File and Table
            • Cell-by-cell validation
          • Query Validation
            • Query Validation (When Data is Available)
            • Query Validation (When Data is Not Available)
          • Schema Validation
        • Configuring Execution Stage
        • Configuring ETL Conversion Stage
          • Ab Initio
          • Informatica
          • Informatica BDM
          • Matillion
          • DataStage
          • SSIS
          • IICS
          • Talend
          • Oracle Data Integrator
          • Pentaho
          • SnapLogic
        • Configuring Mainframe Conversion Stage
          • Cobol
          • JCL
        • Configuring Orchestration Stage
          • AutoSys
          • Control-M
        • Configuring BI Conversion Stage
          • OBIEE to Power BI
          • OBIEE to AWS QuickSight
          • Tableau to Amazon QuickSight
          • Tableau to Power BI
          • Tableau to Superset
          • Tableau to Looker
          • IBM Cognos to Power BI
        • Configuring Analytics Conversion Stage
          • SAS
          • Alteryx
        • Configuring Script Conversion Stage
    • Key Features
      • How to schedule a pipeline
      • Configuring Parameters
  • Pipeline Reports
    • Overview of Pipeline Report
    • Pipeline Listing
    • Reports and Insights
      • Migration
      • Transformation
        • On-premises to Cloud
        • Cloud-to-Cloud
        • LeapLogic Express
      • Validation
        • Data
          • File
          • Table
          • File and Table
        • Query
          • Query Validation Report (When Data is Available)
          • Query Validation Report (When Data is not Available)
        • Schema
      • Execution
      • ETL
        • Ab Initio
        • Informatica
        • Informatica BDM
        • Matillion
        • DataStage
        • SSIS
        • IICS
        • Talend
        • Oracle Data Integrator
        • Pentaho
        • SnapLogic
      • Mainframe
        • Cobol
        • JCL
      • Orchestration
        • AutoSys
        • Control-M
      • BI
        • OBIEE to Power BI
        • OBIEE to Amazon QuickSight
        • Tableau to Amazon QuickSight
        • Tableau to Power BI
        • Tableau to Superset
        • Tableau to Looker
        • IBM Cognos to Power BI
      • Analytics
        • SAS
        • Alteryx
      • Shell Script
      • Common Model
    • Automation Level Indicator
      • ETL
        • Informatica
        • Matillion
        • DataStage
        • Informatica BDM
        • SnapLogic
        • IICS
        • Ab Initio
        • SSIS
        • Talend
        • Pentaho
      • Orchestration
        • AutoSys
        • Control-M
      • EDW
      • Analytics
        • SAS
        • Alteryx
      • BI
      • Shell Script
    • Error Specifications & Troubleshooting
  • SQL Transformation
    • Overview
    • Creating and Executing the Online Notebook
      • How to Create and Execute the Notebook
      • Supported Features
    • Configuring the Notebook
      • Transformation
      • Unit Level Validation
      • Script Level Validation
    • Notebook Listing
  • Operationalization
    • Overview
      • Basic
      • Advanced
      • Cron Expression
    • Parallel Run Pipeline Listing
  • Transformation Source
    • Introduction
    • Creating Transformation Source Type
  • Governance
    • Summary of Governance - Roles and Permissions
    • User Creation
      • Creating a new User Account
    • Adding Roles and permissions
      • How to add Roles and Permissions to a new user?
    • Adding Group Accounts
    • Default Quota Limits
    • Product Usage Metrics
  • License
    • EDW
    • ETL
  • Script/ Query Log/ Code Extraction Prerequisites
    • Cloud
      • Azure Data Factory
      • Snowflake
      • Azure Synapse
      • Google BigQuery
      • Redshift
      • Azure SQL Database Hyperscale
      • Aurora PostgreSQL
    • EDW
      • Oracle
      • Netezza
      • Teradata
      • Vertica
      • SQL Server
      • Db2
      • MySQL
      • PostgreSQL
    • ETL
      • DataStage
      • Informatica
      • SSIS
      • Talend
      • ODI
      • IICS
      • DBT
      • Pentaho
      • Matillion
      • SnapLogic
      • Ab Initio
      • SAP BODS
      • TAC
      • WebFOCUS
    • BI
      • IBM Cognos
      • OBIEE
      • Tableau
      • Metabase
      • MicroStrategy
      • PowerBI
      • LeapLogic Utility for SAP BO
      • SAP BO Universe and Web Intelligence
      • SSRS
    • Analytics
      • SAS
      • Alteryx
    • Orchestration
      • AutoSys
      • Control-M
      • SQL Server
    • Mainframe
  • LeapLogic Desktop Version
    • Overview
    • Registration and Installation
    • Getting Started
    • Creating Assessment
      • ETL
      • DML
      • Procedure
      • Analytics
      • Hadoop
    • Reports and Insights
      • Downloadable Reports
      • Reports for Estimation
    • Logging and Troubleshooting
    • Sample Scripts
    • Desktop vs. Web Version
    • Getting Help
  • LeapLogic (Version 4.9) Deployment
    • System Requirements
    • Prerequisites
    • Deployment
      • Extracting Package
      • Placing License Key
      • Executing Deployment Script
      • Accessing LeapLogic
    • Uploading License
    • Appendix
    • Getting Help
  • Removed Features
    • Configuring File Validation Stage
    • Variable Extractor Stage
      • Variable Extractor Report
    • Configuring Meta Diff Stage
      • Meta Diff
    • Configuring Data Load Stage
      • Data Load
    • Configuring Multi Algo Stage
  • FAQs
  • Tutorial Videos
  • Notice
Home   »  Script/ Query Log/ Code Extraction Prerequisites   »  EDW  »  Vertica Query Execution Logs Extraction and Source Code Prerequisites

Vertica Query Execution Logs Extraction and Source Code Prerequisites

This topic briefs about the Vertica assessment query execution logs extraction and source code prerequisites.

In This Topic:

  • Introduction
  • Assessment Process
  • Source Code Assessment

Introduction

LeapLogic Assessment profiles existing inventory, identify complexity, lineage and provides comprehensive recommendations for migration to modern data platform.

Assessment checklist

Information Format Availability?
Vertica Query Logs File Export in text format Yes/ No
Day Wise Total I/O Usage File Export in text format Yes/ No
Hardware Config for Total CPU Calculation Inline in the document Yes/ No
Database Object Count File Export in text format Yes/ No
Database Volume File Export in text format Yes/ No
High Data Volume Tables File Export in text format Yes/ No
Total Number of Databases, Users, Schema File Export in text format Yes/ No
Total CPU hour-wise File Export in text format Yes/ No
Source code File Export Yes/ No

Follow the steps in section 2, 3 to collect the required information for assessment.


Assessment Process

All the environment specific variables are highlighted. The start and end date should be consistent for all the queries.

Logs

This requires query execution logs in a CSV format. The CSV file must have the following columns (# separated file) retrieved from query_profiles and related system tables.

FILLER~~USERNAME~~appid~~CLIENTID~~STARTTIME~~ampcputime~~TotalIOCount~~ParserCPUTime~~firstresptime~~firststeptime~~procid~~queryid~~maxampcputime~~maxampio~~totalcpu~~totalio~~exec_time~~objectdatabasename~~SCHEMANAME~~StatementType~~QUERYTEXT

This query is used to get columns in a specific order as required for the assessment. This enables the tool to capture the most used tables.

Select

‘IDWWM’ || ‘~~’ ||

User_name || ‘~~’ ||

‘DEFAULT_APPLICATION’ || ‘~~’ ||

‘DEFAULT_client_id’ || ‘~~’ ||

start_timestamp  || ‘~~’ ||

memory_acquired_mb || ‘~~’ ||

‘0’ || ‘~~’ ||

‘0.0’ || ‘~~’ ||

end_timestamp || ‘~~’ ||

’00:00:00′ || ‘~~’ ||

Request_id || ‘~~’ ||

transaction_id || ‘~~’ ||

max(memory_acquired_mb) over(order by null) || ‘~~’ ||

‘0’ || ‘~~’ ||

‘0.0’ || ‘~~’ ||

‘0’ || ‘~~’ ||        

(end_timestamp-start_timestamp ) || ‘~~’ ||

” || ‘~~’ ||

substr(search_path, 0, instr(search_path, ‘,’)) || ‘~~’ ||

” || ‘~~’ ||

Request

FROM query_requests

where start_timestamp between ‘2021-05-16 00:04:11’ and ‘2021-05-22 00:04:11’ and success=true;

Note:

Change the date range according to the assessment time period.

  • Second query will be used to perform the assessment manually. This query will find the longest running queries.

SELECT

(query_duration_us/1000000)::NUMERIC(10,3) duration_sec,

session_id,

transaction_id,

statement_id,

node_name,

query

FROM

query_profiles

WHERE

query_start BETWEEN ‘2021-05-22 19:00:0’ AND ‘2021-05-26 22:00:00’

ORDER BY duration_sec DESC;

Note:

Change the date range as per the assessment time period.

  • Third query will be used to find the list of users with longest running aggregated queries.

SELECT

user_name,

sum(query_duration_us/1000000)::NUMERIC(10,3) duration_sec

FROM

query_profiles

WHERE

query_start BETWEEN ‘2021-05-22 19:00:0‘ AND ‘2021-05-26 22:00:00‘

group by 1

ORDER BY

duration_sec DESC;

Day wise Total IO Usage

Save the results of this query in a CSV file.

select to_date(cast(start_time as varchar(30)),’yyyy-mm-  dd’),sum(total_reads_peak_delta+total_writes_peak_delta)

from  dc_io_info_BY_DAY

where start_time between ‘2021-05-16‘ and ‘2021-05-18‘

group by 1

Replace ‘2021-05-16‘ and ‘2021-05-18‘ with actual export assessment ‘start date’ and ‘end date +1’. For e.g. in the current example, it would give I/O for two dates ‘2021-05-16‘ and ‘2021-05-17‘.

Hardware Config for Total CPU Calculation

Inline in the document.

  • Vertica processors, Memory per physical core
  • Count of Vertica nodes

Database Object Count

Save the results of this query in a CSV file.

select schema_name, TABLE_TYPE,count(table_name)

from all_tables

group by 1,2

order by 1

Database Volume

Save the results of this query in a CSV file.

SELECT /*+ label(estimated_raw_size)*/

       pj.anchor_table_schema,

       pj.used_compressed_gb

       FROM   (SELECT ps.anchor_table_schema,

               SUM(used_bytes)  AS used_compressed_gb

        FROM   v_catalog.projections p

               JOIN v_monitor.projection_storage ps

                 ON ps.projection_id = p.projection_id

        WHERE  p.is_super_projection = ‘t’

        GROUP  BY ps.anchor_table_schema) pj

       order BY pj.used_compressed_gb DESC;

High Data Volume Tables

Save the results of this query in a CSV file.

SELECT

anchor_table_schema ,

anchor_table_name ,

SUM (used_bytes) / (1024^3) AS used_gb

FROM

v_monitor.column_storage

GROUP  BY

anchor_table_schema ,

anchor_table_name

having  SUM (used_bytes) / (1024^3) >10

ORDER  BY

SUM (used_bytes) DESC;

This query will collect database tables with volume above 10 GB.

Note:

The highlighted filter condition can be changed for collecting lower volumes.

Total Number of Databases, Users and Schemas

Save the results of these queries in a CSV file.

select database_name from databases;

select USER_NAME from users; select SCHEMA_NAME from SCHEMATA;

Total CPU Per Hour

Save the results of these queries in a CSV file.

Select

time,

node_name,

start_time,

end_time,

processor_id,

number_of_processors,

cpu_min_frequency_mhz_sample_count,

cpu_min_frequency_mhz_sample_sum,

cpu_max_frequency_mhz_sample_count,

cpu_max_frequency_mhz_sample_sum,

user_microseconds_peak_delta,

nice_microseconds_peak_delta,

system_microseconds_peak_delta,

idle_microseconds_peak_delta,

io_wait_microseconds_peak_delta,

irq_microseconds_peak_delta,

soft_irq_microseconds_peak_delta,

steal_microseconds_peak_delta,

guest_microseconds_peak_delta

Where start_time BETWEEN ‘2021-05-22 19:00:0’ AND ‘2021-05-26 22:00:00’;


Source Code Assessment

Provide the below active or in-scope Vertica source code artifacts as applicable in the migration scope.

Code Artifact Criticality Remarks
Orchestration Scripts (Control-M / Autosys / Cron etc.) Must To identify interdependencies across scheduler scripts / jobs, queries, and dependent workloads
Procedures / Functions Must To identify workload complexity, query patterns, query count etc. for effort estimation and technical debt
Views Must To identify view complexity, patterns and effort estimations
Shell Scripts Must To identify count, dependencies, SQL queries and PL/SQL, logic (example: email, notification etc.) and effort estimations
DDL Must To identify column usage, and provide recommendation on column level lineage, and query optimization on the target system
DML / SQL Files Must To identify count, dependencies, SQL queries and effort estimations


To learn more, contact our support team or write to: info@leaplogic.io

Copyright © 2025 Impetus Technologies Inc. All Rights Reserved

  • Terms of Use
  • Privacy Policy
  • License Agreement
To the top ↑ Up ↑