摘要:
linux 下,经常需要配置双机或者多机信任,简要记录下具体的操作。 比如配置 a,b两台机器ssh信任。生成密钥a,b两台机器均需要执行# cd ~# ssh-keygen -t rsa此时会生成两个密码文件: id_rsa 私钥文件 id_rsa.p...
阅读全文
posted @ 2018-06-04 20:00
peiybpeiyb
阅读(227)
推荐(0)
摘要:
安装# yum install mailx# rpm -qa |grep mailmailcap-2.1.31-2.el6.noarchmailx-12.4-8.el6_6.x86_64libreport-plugin-mailx-2.0.9-32.el6...
阅读全文
posted @ 2018-06-04 16:05
peiybpeiyb
阅读(372)
推荐(0)
摘要:
os:centos 7.4 mongdbo:3.2 mtools:1.4.1mongodb 是一款优秀的nosql数据库,高灵活性和高性能。所以有必要监控mongodb的慢查询,以便进一步缩短响应时间。 mtools是一组用来解析和过滤MongoDB日志文件...
阅读全文
posted @ 2018-05-31 21:02
peiybpeiyb
阅读(497)
推荐(0)
摘要:
postgresql 在编译 extension时经常要使用 pgxs,如下:# source /var/lib/pgsql/.bash_profile# USE_PGXS=1 make # USE_PGXS=1 make install 下面简单分析一下...
阅读全文
posted @ 2018-05-30 16:32
peiybpeiyb
阅读(1340)
推荐(0)
摘要:
前一段时间使用pg_dump备份了单个数据库,今天试了下 pg_dumpall。pg_dumpall -U postgres -h 127.0.0.1 -p 54320 -v -f /var/lib/pgsql/10/pgdumpall_20180529 中...
阅读全文
posted @ 2018-05-29 17:10
peiybpeiyb
阅读(662)
推荐(0)
摘要:
os: centos6.8 postgresql:9.1.22base backup最初使用 tar 花费4个小时,之后改为 pigz 只花费了30分钟。# vi /backup_scripts/pg_basebackup.sh#!/bin/bashDATE...
阅读全文
posted @ 2018-05-24 20:48
peiybpeiyb
阅读(351)
推荐(0)
摘要:
os: centos7.4 postgresql:9.6.8查看os进程$ ps -ef|grep -i post |grep -i statpostgres 10782 10770 0 May09 ? 00:02:42 postgres: ...
阅读全文
posted @ 2018-05-23 18:32
peiybpeiyb
阅读(1023)
推荐(0)
摘要:
最近在整理postgresql数据库的表、列的备注信息时,用到了如下的sql表的备注with tmp_tab as ( select pc.oid as ooid,pn.nspname,pc.* from pg_class pc ...
阅读全文
posted @ 2018-05-22 16:44
peiybpeiyb
阅读(1443)
推荐(0)
摘要:
os: centos7.4 redis:4.0.9 ruby:2.3.4ip 规划redis1 192.168.56.101redis2 192.168.56.102用两台虚拟机模拟6个redis节点。 分别为 192.168.56.101 的...
阅读全文
posted @ 2018-05-21 19:12
peiybpeiyb
阅读(143)
推荐(0)
摘要:
os: centos7.4 redis:4.0.9 ruby:2.3.4ip 规划redis1 192.168.56.101redis2 192.168.56.102用两台虚拟机模拟6个redis节点。 分别为 192.168.56.101 的 ...
阅读全文
posted @ 2018-05-21 19:05
peiybpeiyb
阅读(244)
推荐(0)
摘要:
os: linux 5.8 ebs:12.1.3 patch:14332598这里以 p14332598 为例,列出打补丁的过程。查看补丁SELECT * FROM ad_applied_patches where 1=1 and patch_n...
阅读全文
posted @ 2018-05-20 19:07
peiybpeiyb
阅读(628)
推荐(0)
摘要:
os: centos7.4 redis:4.0.9 ruby:2.3.4ip 规划redis1 192.168.56.101redis2 192.168.56.102用两台虚拟机模拟6个redis节点。 分别为 192.168.56.101 的...
阅读全文
posted @ 2018-05-18 17:22
peiybpeiyb
阅读(211)
推荐(0)
摘要:
pgpool:3.7.3文档 http://www.pgpool.net/docs/latest/en/html/configuring-pgpool.html4.3.2. Running mode of Pgpool-IIThere are four di...
阅读全文
posted @ 2018-05-16 15:48
peiybpeiyb
阅读(239)
推荐(0)
摘要:
os: centos7.4 postgresql:9.6.8 pgpool:3.7.3采用 streaming replication mode 模式,这是比较通用的方案。 The streaming replication mode can be used...
阅读全文
posted @ 2018-05-16 15:25
peiybpeiyb
阅读(943)
推荐(0)
摘要:
os: centos7.4 postgresql:9.6.8 pgpool:3.7.3pgpool 简介准确的名字是Pgpool-II,这里简称为pgpool。pgpool 是介于postgresql 服务和 postgresql 客户端的中间件。它提供如下...
阅读全文
posted @ 2018-05-16 14:00
peiybpeiyb
阅读(1159)
推荐(0)
摘要:
postgresql 的函数有三个状态:IMMUTABLE、STABLE、VOLATILE。这个是与其他数据库有明显概念差别的。简单描述如下: IMMUTABLE(非常稳定) 表示该函数不能修改数据库并且对于给定的参数值总是会返回相同的值。也就是说,它不会...
阅读全文
posted @ 2018-05-13 15:14
peiybpeiyb
阅读(845)
推荐(0)
摘要:
fdw:foreign data wrapper,postgresql的外部数据包装器。 postgres_fdw 是用于postgresql的数据库之间连接,原因是postgresql不能直接跨库访问,被设计用来替代dblink。 这么口语化的描述,大家应...
阅读全文
posted @ 2018-05-09 14:31
peiybpeiyb
阅读(307)
推荐(0)
摘要:
gpcheckcat查看帮助[gpadmin@node1 bin]$ gpcheckcat -?Usage: gpcheckcat [] [dbname] -? -B parallel: number of worker threads -...
阅读全文
posted @ 2018-05-08 20:15
peiybpeiyb
阅读(440)
推荐(0)
摘要:
gpcheck查看帮助[gpadmin@node1 bin]$ gpcheck --helpCOMMAND NAME: gpcheckVerifies and validates Greenplum Database platform settings.**...
阅读全文
posted @ 2018-05-08 20:13
peiybpeiyb
阅读(344)
推荐(0)
摘要:
gp_toolkit 是 greenplum的一个功能schema。包含了大量实用的函数。[gpadmin@node1 gpseg-1]$ psql -d peiybdbpsql (8.3.23)Type "help" for help.peiybdb=# ...
阅读全文
posted @ 2018-05-08 15:34
peiybpeiyb
阅读(606)
推荐(0)
摘要:
pgcrypto模块为PostgreSQL提供了密码函数。 简单使用了一下。创建pgcryptomondb=# create extension pgcrypto;CREATE EXTENSION加密mondb=# select encrypt('123我m...
阅读全文
posted @ 2018-05-07 10:03
peiybpeiyb
阅读(272)
推荐(0)
摘要:
os: centos 7.4 gp: gpdb-5.7.0三台机器 node1 为master host node2、node3为segment hostpsql 登录 node1 master$ psql -d peiybdbpeiybdb=# selec...
阅读全文
posted @ 2018-05-02 17:46
peiybpeiyb
阅读(493)
推荐(0)
摘要:
os: centos 7.4 gp: gpdb-5.7.0三台机器 node1 为 master host node2、node3 为 segment hostpsql 登录 masternode1 上操作# su - gpadmin$ psql -d pe...
阅读全文
posted @ 2018-05-02 15:05
peiybpeiyb
阅读(171)
推荐(0)
摘要:
opmn.xml 是由autoconfig生成的重要参数配置文件。通常的路径如下: /ebsfs/EBSPROD/inst/apps/EBSPROD_erp/ora/10.1.3/opmn/conf/opmn.xml通过调整java的启动参数和numproc...
阅读全文
posted @ 2018-05-01 18:18
peiybpeiyb
阅读(390)
推荐(0)
摘要:
oracle oradebug systemstate 是dba分析instance的重要方法,需要勤加练习、多多分析。数据库版本$sqlplus system/oracleoracleSQL*Plus: Release 12.2.0.1.0 Product...
阅读全文
posted @ 2018-04-27 19:57
peiybpeiyb
阅读(218)
推荐(0)
摘要:
oracle oradebug analyze 是dba分析问题的必备技能,建议dba们空闲的时候可以多做做实验,熟能生巧。数据库版本$sqlplus system/oracleoracleSQL*Plus: Release 12.2.0.1.0 Produ...
阅读全文
posted @ 2018-04-27 18:12
peiybpeiyb
阅读(585)
推荐(0)
摘要:
https://pgtune.leopard.in.ua alter system set listen_addresses = '*'; alter system set port = 5432; alter system set max_connecti...
阅读全文
posted @ 2018-04-24 16:43
peiybpeiyb
阅读(709)
推荐(0)
摘要:
centos 6.x 的yum使用的是python 2.6,现在需要更新系统默认python为python 2.7安装 python2.7# yum install python27-python python27-python-devel查询 pytho...
阅读全文
posted @ 2018-04-19 19:07
peiybpeiyb
阅读(191)
推荐(0)
摘要:
创建 greenplum 组# groupadd -g 10000 gpadmin创建 greenplum 用户# useradd -u 10000 -g gpadmin gpadmin# usermod -G root gpadmin# passwd gp...
阅读全文
posted @ 2018-04-19 14:21
peiybpeiyb
阅读(825)
推荐(0)
摘要:
gpinitsystem# su - gpadmin$ cd $GPHOME$ gpinitsystem --help*****************************************************SYNOPSIS*********...
阅读全文
posted @ 2018-04-18 19:48
peiybpeiyb
阅读(558)
推荐(0)
摘要:
gpstart 启动数据库$ gpstart --help$ gpstart直接启动,不提示终端用户输入确认$ gpstart -a只启动master 实例,主要在故障处理时使用$ gpstart -mPGOPTIONS='-c gp_session_rol...
阅读全文
posted @ 2018-04-18 17:49
peiybpeiyb
阅读(252)
推荐(0)
摘要:
os: centos 7.4 gp: greenplum 5.7.0# FILE NAME: gpinitsystem_config# Configuration file needed by the gpinitsystem################...
阅读全文
posted @ 2018-04-17 18:35
peiybpeiyb
阅读(594)
推荐(0)
摘要:
os: centos 7.4 gp: gpdb-5.7.0greenplum 简称gp,是由postgresql演变而来,感兴趣的哥们可以baidu一下三台机器 node1 为master host node2、node3为segment hostos设置#...
阅读全文
posted @ 2018-04-17 18:04
peiybpeiyb
阅读(290)
推荐(0)
摘要:
org https://www.redhat.com/ https://www.centos.org/https://linux.oracle.com https://edelivery.oracle.com/osdc/faces/Home.jspxhttp...
阅读全文
posted @ 2018-04-16 10:51
peiybpeiyb
阅读(239)
推荐(0)
摘要:
org https://www.mongodb.com/https://www.mongodb.com/download-center?jmp=tutorials#community https://docs.mongodb.com/http://www.m...
阅读全文
posted @ 2018-04-16 10:41
peiybpeiyb
阅读(119)
推荐(0)
摘要:
org https://greenplum.org/ https://greenplum.org/calc/https://gp-docs-cn.github.io/docs/ https://greenplum.org/documentation/ htt...
阅读全文
posted @ 2018-04-16 09:12
peiybpeiyb
阅读(331)
推荐(0)
摘要:
org https://www.mysql.com/ https://www.mysql.com/downloads/ https://www.mysql.com/cn/products/community/org doc https://dev.mysql...
阅读全文
posted @ 2018-04-13 17:46
peiybpeiyb
阅读(263)
推荐(0)
摘要:
切换前 192.168.56.100 master 192.168.56.200 slave切换后 192.168.56.100 slave 192.168.56.200 masterMySQL [(none)]> select version();+--...
阅读全文
posted @ 2018-04-13 17:00
peiybpeiyb
阅读(682)
推荐(0)
摘要:
ebs 12.1.3 ,经常需要查看一些日志,这里自己记录一下,方便以后快速查找。# find /ebsfs/EBSPROD/inst -type f -mmin -100/ebsfs/EBSPROD/inst/apps/EBSPROD_erp/logs/a...
阅读全文
posted @ 2018-04-13 14:46
peiybpeiyb
阅读(894)
推荐(0)
摘要:
pg_test_fsync 是测试 wal_sync_method设置哪个值最快,还可以在发生认定的 I/O 问题时提供诊断信息。 pg_test_fsync为 wal_sync_method报告以微秒计的平均文件同步操作时间, 也能被用来提示用于优化com...
阅读全文
posted @ 2018-04-13 11:39
peiybpeiyb
阅读(418)
推荐(0)