greenplum 5.7 + gpcheckcat

news/2024/11/8 10:46:12

gpcheckcat

查看帮助

$ gpcheckcat -?

Usage: gpcheckcat [<option>] [dbname]

    -?
    -B parallel: number of worker threads
    -g dir     : generate SQL to rectify catalog corruption, put it in dir
    -p port    : DB port number
    -P passwd  : DB password
    -U uname   : DB User Name
    -v         : verbose
    -A         : all databases
    -S option  : shared table options (none, only)
    -O         : Online
    -l         : list all tests
    -R test    : run this particular test
    -C catname : run cross consistency, FK and ACL tests for this catalog table
    

gpcheckcat -l

查看check项目

[gpadmin@node1 bin]$ gpcheckcat -l

List of gpcheckcat tests:

   unique_index_violation: Check for violated unique indexes
                duplicate: Check for duplicate entries
       missing_extraneous: Cross consistency check for missing or extraneous entries
             inconsistent: Cross consistency check for master segment inconsistency
              foreign_key: Check foreign keys
                      acl: Cross consistency check for access control privileges
               persistent: Check persistent tables
                  pgclass: Check pg_class entry that does not have any correspond pg_attribute entry
                namespace: Check for schemas with a missing schema definition
      distribution_policy: Check constraints on randomly distributed tables
               dependency: Check for dependency on non-existent objects
                    owner: Check table ownership that is inconsistent with the master database
           part_integrity: Check pg_partition branch integrity, partition with oids, partition distribution policy
          part_constraint: Check constraints on partitioned tables
     duplicate_persistent: Check for duplicate gp_persistent_relation_node entries
       mirroring_matching: Check that configured mirroring and segments' mirroring agree
       

gpcheckcat -R persistent

[gpadmin@node1 bin]$ gpcheckcat -R persistent -p 5432 peiybdb
Truncated batch size to number of primaries: 3

Connected as user 'gpadmin' to database 'peiybdb', port '5432', gpdb version '5.0'
-------------------------------------------------------------------
Batch size: 3
Performing test 'persistent'
Total runtime for test 'persistent': 0:00:00.51

SUMMARY REPORT
===================================================================
Completed 1 test(s) on database 'peiybdb' at 2018-05-08 17:54:51 with elapsed time 0:00:00
Found no catalog issue

gpcheckcat -R pgclass

[gpadmin@node1 bin]$ gpcheckcat -R pgclass -p 5432 peiybdb
Truncated batch size to number of primaries: 3

Connected as user 'gpadmin' to database 'peiybdb', port '5432', gpdb version '5.0'
-------------------------------------------------------------------
Batch size: 3
Performing test 'pgclass'
Total runtime for test 'pgclass': 0:00:00.01

SUMMARY REPORT
===================================================================
Completed 1 test(s) on database 'peiybdb' at 2018-05-08 17:56:44 with elapsed time 0:00:00
Found no catalog issue

gpcheckcat -R namespace

[gpadmin@node1 bin]$ gpcheckcat -R namespace -p 5432 peiybdb
Truncated batch size to number of primaries: 3

Connected as user 'gpadmin' to database 'peiybdb', port '5432', gpdb version '5.0'
-------------------------------------------------------------------
Batch size: 3
Performing test 'namespace'
Total runtime for test 'namespace': 0:00:00.02

SUMMARY REPORT
===================================================================
Completed 1 test(s) on database 'peiybdb' at 2018-05-08 17:57:46 with elapsed time 0:00:00
Found no catalog issue

gpcheckcat -R distribution_policy

[gpadmin@node1 bin]$ gpcheckcat -R distribution_policy -p 5432 peiybdb
Truncated batch size to number of primaries: 3

Connected as user 'gpadmin' to database 'peiybdb', port '5432', gpdb version '5.0'
-------------------------------------------------------------------
Batch size: 3
Performing test 'distribution_policy'
Total runtime for test 'distribution_policy': 0:00:00.00

SUMMARY REPORT
===================================================================
Completed 1 test(s) on database 'peiybdb' at 2018-05-08 17:58:19 with elapsed time 0:00:00
Found no catalog issue

gpcheckcat -R dependency

[gpadmin@node1 bin]$ gpcheckcat -R dependency -p 5432 peiybdb
Truncated batch size to number of primaries: 3

Connected as user 'gpadmin' to database 'peiybdb', port '5432', gpdb version '5.0'
-------------------------------------------------------------------
Batch size: 3
Performing test 'dependency'
Total runtime for test 'dependency': 0:00:00.31

SUMMARY REPORT
===================================================================
Completed 1 test(s) on database 'peiybdb' at 2018-05-08 17:58:44 with elapsed time 0:00:00
Found no catalog issue


http://www.niftyadmin.cn/n/2124330.html

相关文章

数据库,Unix

Solaris安装Oracle需要安装的包是&#xff1a;SUNWi1cs&#xff0c; SUNWi15cs进入到/cdrom/solaris,.../Sorl./Product下 pkgadd -d . SUNWi1cs 内核参数&#xff1a; set shmsys:shminfo_shmmax4294967295set shmsys:shminfo_shmmni100set semsys:seminfo_semmni100set sem…

CentOS 7安装Elasticsearch 7.2

一 安装jdk elasticsearch7.2 要求JDK版本是jdk11 &#xff0c;我一不小心装JDK8,最后发现不装JDK也可以 。 elasticsearch7.2中包含JDK,只要做一些配置就可以 。详见下边 三 二、Elasticsearch安装配置 &#xff08;1&#xff09;Elasticsearch安装 Elasticsearch的下载…

iSCSI配置

openfiler的配置1&#xff0c;用户名是&#xff1a;openfiler 密码是&#xff1a;password 2&#xff0c;将openfiler用作iSCSI存储服务器&#xff0c;我们需要执行六个主要的任务&#xff1a;设置iSCSI的服务&#xff0c;配置网络访问&#xff0c;制定物理存储并对其分区&am…

fdw postgres_fdw

os:centos 6.8 db:postgresql 9.6 fdw&#xff1a;foreign data wrapper&#xff0c;postgresql的外部数据包装器。 postgres_fdw 是用于postgresql的数据库之间连接&#xff0c;原因是postgresql不能直接跨库访问&#xff0c;被设计用来替代dblink。 这么口语化的描述&#x…

elasticsearch启动常见问题

elasticsearch启动常见问题 原文&#xff1a;https://blog.csdn.net/qq_22211217/article/details/80740873 一、Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ElasticsearchParseException[malform…

mac 更改默认php

1.新建一个.bash_profile文件并编辑 vim ~/.bash_profile 2.然后在里面输入自己想要的php版本 export PATH/Applications/MAMP/bin/php/php7.2.7/bin:$PATH #/Applications/MAMP/bin/php/php7.2.7/bin是我的php版本路径 3.保存重载环境变量 source ~/.bash_profile 如果你…

postgresql 函数的三个状态

postgresql 的函数有三个状态&#xff1a;IMMUTABLE、STABLE、VOLATILE。这个是与其他数据库有明显概念差别的。 简单描述如下&#xff1a; IMMUTABLE(非常稳定) 表示该函数不能修改数据库并且对于给定的参数值总是会返回相同的值。也就是说&#xff0c;它不会做数据库查找或…

(MAC)Docker容器Removal In Progress删除方案

一 &#xff1a;进入Docker桌面 screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty 二 &#xff1a;找文件(根据自己找文件) cd /var/lib/docker/overlay2/e000b8a86824f48cb824ab643ce7d035e7ec4f3114bad897a2235cf922bba972/diff# 三&#xff1a;安装chatt…