Vertica Database Common Management Command summary

Source: Internet
Author: User
Tags diff

1. Query the database for waiting

SELECT * from Resource_queues where node_name= (select Node_name from Nodes order by Node_name limit 1) Order by queue_entr Y_timestamp desc;

2. Check the current database execution SQL (included in the queue waiting)

3. Resource Pools

3.1 Querying the settings of the current resource pool

SELECT name, memorysize, Maxmemorysize, priority, Runtimepriority,queuetimeout,runtimeprioritythreshold, Runtimecap, MaxConcurrency from V_catalog. Resource_pools;

3.2 Querying the current resource pool usage status

Select Node_name,pool_name,running_query_count as Running,memory_size_kb,memory_inuse_kb,general_memory_borrowed_ kb,query_budget_kb from Resource_pool_status where Running_query_count > 0 order by Pool_name,node_name;

4. Is data persisted to disk, diff=0

Select Latestepoch-earliestepoch as Diff,epochmap,earliestepoch,latestepoch,ahmepoch from Vs_epoch_map;
5. Querying the tuple mover status (dbadmin execution)
Select Node_name,service_name,service_interval_sec as Period,is_enabled,last_run_start,last_run_end from System_ Services where service_name like ' tm% ' ORDER by last_run_end Desc,last_run_start Desc,service_name;
6. Manually persist data (moveout)
Select Do_tm_task (' Moveout ', ');

7. Export the Build Table statement

Select Export_objects ('/tmp/all.sql ', ');

8. View license Information

SELECT Display_license ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.