greenplum 5.7 + gpcheckcat详解数据库
数据库 详解 5.7 GreenPlum
2023-06-13 09:20:08 时间
查看帮助
[[email protected] bin]$ 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 tablegpcheckcat -l
查看check项目
[[email protected] 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 agreegpcheckcat -R persistent
[[email protected] 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 issuegpcheckcat -R pgclass
[[email protected] 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 issuegpcheckcat -R namespace
[[email protected] 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 issuegpcheckcat -R distribution_policy
[[email protected] 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 issuegpcheckcat -R dependency
[[email protected] 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
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/3873.html
相关文章
- mysql-5.7二进制安装详解数据库
- greenplum 5.7 + create table + insert into详解数据库
- greenplum 5.7 + connection master segment详解数据库
- greenplum 5.7 + gpinitsystem gpdeletesystem详解数据库
- greenplum 5.7 + gpstart gpstop gpstate详解数据库
- greenplum 5.7 + gpinitsystem_config详解数据库
- mysql 5.7 搭建基本的 master/salve详解数据库
- mysql 5.7 的 /etc/my.cnf 参数详解数据库
- mysql count的理解详解数据库
- Oracle中nvl(), nvl2()函数的区别详解数据库
- windows 启动关闭Oracle监听和服务详解数据库
- mybatis中sql标签、where标签、foreach标签用法详解数据库
- mysql 查询当天、本周,本月,上一个月的数据详解数据库
- 告诉你38个MySQL数据库的小技巧详解数据库
- linux 命令启动Oracle数据库详解数据库
- oracle查询不重复数据详解数据库
- 数据库中空值引起的一个奇怪问题详解数据库
- HBase数据库检索性能优化策略详解大数据
- Django Mysql数据库-F查询和Q查询详解编程语言
- 高效率的Oracle定制数据库解决方案(oracle定制数据库)
- Oracle数据库触发器类型研究(oracle触发器类型)
- 如何通过MySQL连接建立网站数据库?(网站连接mysql)
- Oracle数据比较详解:学习Oracle数据比较方法,轻松提升数据库管理技能(oracle数据比较)
- 解决Oracle数据库日期类型转换问题(日期转换 oracle)
- Oracle数据库入门初步浅析与详细说明(oracle入门及详解)
- 备份Oracle数据库的正确姿势CV法(cv 备份oracle)
- MySQL执行顺序详解,助你运用好数据库技术(mysql z执行顺序)
- Oracle数据库中灵活运用时间的方式(oracle中的时间用法)