PostgreSQL学习第四篇--数据库cluster启停
来源:互联网 发布:注册花生壳免费域名 编辑:程序博客网 时间:2024/05/07 15:38
启动数据库cluster:pg_ctl start -D $PGDATA关闭数据库cluster:pg_ctl stop -D $PGDATA [-m mode]mode有三种模式:1. smart :等待所有的连接终止后,关闭数据库cluster。如果客户端连接不终止,则无法关闭数据库cluster。看起来是Oracle的normal。2. fast:快速关闭数据库cluster,断开客户端的连接,让已有的事务回滚,然后正常关闭数据库cluster,看起来是Oracle的immediate。3. immediate:立即关闭数据库cluster,相当于数据库cluster进程立即停止,直接退出,下次启动数据库cluster需要恢复。看起来是Oracle的abort。[postgres@single ~]$ pg_ctl start -D $PGDATAserver starting[postgres@single ~]$ LOG: could not bind IPv6 socket: Address already in useHINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.LOG: could not bind IPv4 socket: Address already in useHINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.WARNING: could not create listen socket for "localhost"FATAL: could not create any TCP/IP socketsLOG: database system is shut down发现是因为前面已经启动了-D /usr/pg/postgresql-9.6.1/data/先停掉:[postgres@single ~]$ pg_ctl stop -D /usr/pg/postgresql-9.6.1/data/waiting for server to shut down.... doneserver stopped然后起:[postgres@single ~]$ pg_ctl start -D $PGDATAserver starting[postgres@single ~]$ LOG: database system was shut down at 2016-11-17 08:55:51 CSTLOG: MultiXact member wraparound protections are now enabledLOG: database system is ready to accept connectionsLOG: autovacuum launcher started可以了。
0 0
- PostgreSQL学习第四篇--数据库cluster启停
- PostgreSQL学习第十二篇 服务的启停和创建
- PostgreSQL Cluster
- 手工启停数据库步骤
- sqlplus 连接,启停数据库
- oracle RAC数据库启停
- oracle数据库启停错误
- PostgreSQL学习篇15.1 数据库配置优化
- PostgreSQL数据库学习
- PostgreSQL数据库学习手册
- postgresql数据库学习
- 学习Postgresql数据库
- win下手工启停数据库
- 启停oracle数据库(linux windows )
- 数据库rac启停步骤.txt
- Oracle数据库技术实用详解学习笔记:启停数据库实例、初始化参数
- PostgreSQL学习第十篇 数据库逻辑结构介绍--数据库
- PostgreSQL Cluster系列教程
- OpenGL基础变换
- 递归算法——打印目录树状图
- 97. Interleaving String
- HDU 4706 Children's Day
- Sql Server 生成连续的日期列表
- PostgreSQL学习第四篇--数据库cluster启停
- fusioncharts 一些属性
- 点击是否delete
- 用时间和随机数生成订单
- SSDB数据库
- You Are the One
- Java 中的方法
- 严重: Exception starting filter struts2 Unable to load configuration……解决
- 【寒江雪】DirectX3D四大变换