First of many tutorials on how we can write administration scripts using the VSQL command line tool and its options.
We will start with basic options:
Connect to the database :
Download Vertica Free Hardware Setup Manual from here:
How to Connect to a specific node/host form the command line
Where "-h" option will be followed by host name or ip address.
Now change the node/host
Where "-h" option will be follwed by host name or ip address.
Connect to specific database:
Where "-d" option will be followd by database name.
Run a single command from the vsql line:
Where "-c" option will be followd by the command you want to be executed.
-command will execute and exit
Redirect output to a file
Execute commands from file, then exit
How to List all available databases from vsql.
This are just few of the many examples of how Vsql command line can be used.