``copy view model
alter schema copy rename to copy_schema;alter schema model rename to model_schema;alter schema model remame to view_schema;
系统参数
gpssh -f all_hosts
cat /etc/hosts
cat /etc/sysctl.conf
cat /boot/grub/menu.lst
cat /etc/security/limits.conf
cat /etc/fstab
数据库的参数
gpssh -f all_hosts
cat pg_hba.conf
cat postgresql.conf
查看重启数据库的日志,显示如下,
received fast shutdown request
当数据库某一个节点宕机时,可以用
gprecoverseg -r
检查instance出差的状态
gpstate -e [查看节点恢复状态]
查看系统日志表
"select * from gp_segment_configuation where status=‘d';"
重启GP系统用
gpstop -r
查看primary instance 和mirror instance 的关系用
gpstate -m
gpconfig -s max_prepared_transactions 查看节点配置参数
清除SQ语句用
select pg_cancel_backend+进程号
查看资源队列中等待的语句
select * from gp_toolkit.gp_locks_on_resqueue where lorwaiting='true'
如果没有结果返回,则没有语句在资源队列中执行。
su - ebankdb
Appuser01
alter schema copy rename to copy_schema;alter schema model rename to model_schema;alter schema model remame to view_schema;
系统参数
gpssh -f all_hosts
cat /etc/hosts
cat /etc/sysctl.conf
cat /boot/grub/menu.lst
cat /etc/security/limits.conf
cat /etc/fstab
数据库的参数
gpssh -f all_hosts
cat pg_hba.conf
cat postgresql.conf
查看重启数据库的日志,显示如下,
received fast shutdown request
当数据库某一个节点宕机时,可以用
gprecoverseg -r
检查instance出差的状态
gpstate -e [查看节点恢复状态]
查看系统日志表
"select * from gp_segment_configuation where status=‘d';"
重启GP系统用
gpstop -r
查看primary instance 和mirror instance 的关系用
gpstate -m
gpconfig -s max_prepared_transactions 查看节点配置参数
清除SQ语句用
select pg_cancel_backend+进程号
查看资源队列中等待的语句
select * from gp_toolkit.gp_locks_on_resqueue where lorwaiting='true'
如果没有结果返回,则没有语句在资源队列中执行。
su - ebankdb
Appuser01