본문으로 건너뛰기

Run Vantage Express on Azure

노트

You can now get a hosted instance of Vantage for free at https://clearscape.teradata.com.

Overview

This how-to demonstrates how to run Vantage Express in Microsoft Azure. Vantage Express contains a fully functional Teradata SQL Engine.

Prerequisites

Installation

  • Setup the default region to the closest region to you (to list locations run az account list-locations -o table):
  • Create a new resource group called tdve-resource-group and add it to defaults:
  • To create a VM you will need an ssh key pair. If you don't have it already, create one:
  • Restrict access to the private key. Replace <path_to_private_key_file> with the private key path returned by the previous command:
  • Create a Ubuntu VM with 4 CPU's and 8GB of RAM, a 30GB os disk and a 60GB data disk.
  • ssh to your VM. Replace <path_to_private_key_file> and <vm_ip> with values that match your environment:
  • Once in the VM, switch to root user:
  • Prepare the download directory for Vantage Express:
  • Mount the data disk:
  • Install VirtualBox and 7zip:
  • Retrieve the curl command to download Vantage Express.

    • Go to Vantage Expess download page (registration required).
    • Click on the latest download link, e.g. "Vantage Express 17.20". You will see a license agreement popup. Don't accept the license yet.
    • Open the network view in your browser. For example, in Chrome press F12 and navigate to Network tab:

    Browser Network Tab

    • Accept the license by clicking on I Agree button and cancel the download.
    • In the network view, find the last request that starts with VantageExpress. Right click on it and select Copy -> Copy as cURL:

    Browser Copy culr

  • Head back to the ssh session and download Vantage Express by pasting the curl command. Add -o ve.7z to the command to save the download to file named ve.7z. You can remove all the HTTP headers, e.g.:

  • Unzip the downloaded file. It will take several minutes:
  • Start the VM in VirtualBox. The command will return immediately but the VM init process will take several minutes:
  • ssh to Vantage Express VM. Use root as password:
  • Validate that the DB is up:

If the command returns PDE state is RUN/STARTED. DBS state is 5: Logons are enabled - The system is quiescent, it means that Vantage Express has started. If the status is different, repeat pdestate -a till you get the correct status.

  • Once Vantage Express is up and running, start bteq client command line client. BTEQ (pronounced “bee-teek”) is a general-purpose, command-based client tool used to submit SQL queries to a Teradata Database.
  • Once in bteq, connect to your Vantage Express instance. When asked for the password, enter dbc:

Run sample queries

  • Using dbc user, we will create a new database called HR. Copy/paste this query and run press Enter:
  • Let’s create a sample table and insert some data and query it. We will first create a table to hold employee information:
  • Now, let's insert a record:
  • Finally, let's see if we can retrieve the data:

You should get the following results:

Optional setup

  • If you intend to stop and start the VM, you may want to add Vantage Express to autostart. ssh to your VM and run the following commands:
  • If you would like to connect to Vantage Express from the Internet, you will need to open up firewall holes to your VM. You should also change the default password to dbc user:
  • To change the password for dbc user go to your VM and start bteq:
  • Login to your database using dbc as username and password:
  • Change the password for dbc user:
  • You can now open up port 1025 to the internet using gcloud command:

To stop incurring charges, delete all the resources associated with the resource group:

Next steps

Further reading

노트

If you have any questions or need further assistance, please visit our community forum where you can get support and interact with other community members.

기타 관심 사항