gpcheckcat命令
来源:互联网 发布:变魔术软件下载 编辑:程序博客网 时间:2024/06/10 02:16
使用gpcheckcat命令检验你的系统目录的完整性
检查数据库:
nohup $GPHOME/bin/lib/gpcheckcat -p 5432 -v dbname| tee -a /tmp/checkcat.txt &
执行命令:
"$GPHOME/bin/lib/gpcheckcat -A"
查看日志:
cd /home/gpadmin/gpAdminLogs
1) PGOPTIONS='-c gp_session_role=utility' psql -h sdw1 -p 40013 sg
2) create table pg_attr_bkp as select * from pg_attribute where 0=1;
3) copy pg_attr_bkp from '/home/gpadmin/pg_attr_fix.txt';
set allow_system_table_mods = dml;
4) insert into pg_attribute (select * from pg_attr_bkp where not exists (select 1 from pg_attribute where pg_attribute.attrelid=pg_attr_bkp.attrelid));
PGOPTIONS='-c gp_session_role=utility' psql -h sdw1 -p 40013 sg -c "copy pg_attribute from '/home/gpadmin/pg_attr_fix.txt'";
PGOPTIONS='-c gp_session_role=utility' psql -h sdw1 -p 40014 sg -c "copy pg_attribute from '/home/gpadmin/pg_attr_fix.txt'";
- gpcheckcat命令
- 如何解决Greenplum的gpcheckcat关于persistent的错误
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 命令
- 用OpenSceneGraph实现的NeHe OpenGL教程 - 第八课
- PageRank算法第一篇
- Java mail 发送邮件
- 【收藏】新世界
- 一个操作系统的实现:关于保护模式和实模式的跳转和段描述符高速缓冲寄存器
- gpcheckcat命令
- 结构体中Char a[0]用法——柔性数组
- 点量网络性能检测库SDK开发包
- Linux文档打包,压缩、解压缩
- Oracle中的Exists、In、ANY、ALL
- android 完美退出应用程序。
- 在线看Android源码
- 简单计算器的实现
- oracle 体系结构