当前位置: 首页 > news >正文

Oracle 19c rac集群管理 -------- 集群启停操作过程

Oracle rac集群启停操作过程

首先查看数据库的集群的db_unique_name

SQL> show parameter nameNAME                                 TYPE        VALUE
------------------------------------ ----------- ---------------------------
cdb_cluster_name                     string
cell_offloadgroup_name               string
db_file_name_convert                 string
db_name                              string      p19c0
db_unique_name                       string      p19c0
global_names                         boolean     FALSE
instance_name                        string      p19c01
lock_name_space                      string
log_file_name_convert                string
pdb_file_name_convert                string
processor_group_name                 stringNAME                                 TYPE        VALUE
------------------------------------ ----------- -------------------------
service_names                        string      p19c0

–确认集群的instance_name
SQL> select instance_name,status from gv$instance;

INSTANCE_NAME STATUS


p19c01 OPEN
p19c02 OPEN
在这里插入图片描述

Step 1.停止以及查看数据库
su - grid
srvctl stop database -d p19c0
srvctl status database -d p19c0 

在这里插入图片描述

Step 2.停止集群服务
su - root
/u01/app/19.3.0/grid/bin/crsctl stop cluster -all
Step 3.启动 集群服务(root):
/u01/app/19.3.0/grid/bin/crsctl start cluster -all --会启动数据库
/u01/app/19.3.0/grid/bin/crsctl start has --启动数据库
/u01/app/19.3.0/grid/bin/crsctl start crs
/u01/app/19.3.0/grid/bin/crsctl start cluster -all
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'node1'
CRS-2672: Attempting to start 'ora.evmd' on 'node1'
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'node2'
CRS-2672: Attempting to start 'ora.evmd' on 'node2'
CRS-2676: Start of 'ora.cssdmonitor' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'node1'
CRS-2672: Attempting to start 'ora.diskmon' on 'node1'
CRS-2676: Start of 'ora.diskmon' on 'node1' succeeded
CRS-2676: Start of 'ora.cssdmonitor' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'node2'
CRS-2672: Attempting to start 'ora.diskmon' on 'node2'
CRS-2676: Start of 'ora.diskmon' on 'node2' succeeded
CRS-2676: Start of 'ora.evmd' on 'node1' succeeded
CRS-2676: Start of 'ora.evmd' on 'node2' succeeded
CRS-2676: Start of 'ora.cssd' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'node1'
CRS-2672: Attempting to start 'ora.ctssd' on 'node1'
CRS-2676: Start of 'ora.cssd' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'node2'
CRS-2676: Start of 'ora.ctssd' on 'node1' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'node1'
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'node2'
CRS-2676: Start of 'ora.ctssd' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'node2'
CRS-2676: Start of 'ora.asm' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'node2'
CRS-2676: Start of 'ora.asm' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'node1'
CRS-2676: Start of 'ora.storage' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'node1'
CRS-2676: Start of 'ora.crsd' on 'node1' succeeded
CRS-2676: Start of 'ora.storage' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'node2'
CRS-2676: Start of 'ora.crsd' on 'node2' succeeded
Step 4. 启动数据库:
crsctl status res -t

在这里插入图片描述

srvctl status database -d p19c0
srvctl start database -d p19c0

在这里插入图片描述
在这里插入图片描述

Oracle rac单节点重启操作过程

1.root查看系统监控进程

ps -ef|grep smon

2.切换到oracle用户

su - oracle

3.sys用户登录数据库

sqlplus / as sysdba

4.检查点切换 停库前执行 alter system checkpoint 很重要!

alter system checkpoint;

5.强制系统进行日志切换 6次

ALTER SYSTEM SWITCH LOGFILE;

6.关闭所有的容器数据库

alter pluggable database all close immediate;

7.关闭实例

srvctl stop instance -d p19c0 -i p19c01

退出oracle用户到root

su - root

8.设置在服务器启动时,自动启动crs守护进程

crsctl enable crs1.

9.强制关闭所有crs守护进程

crsctl stop crs -f1.

10.查看集群状态

crsctl status res -t1.

11.重启操作系统

shutdown

12.重启完成后操作

su - oraclesrvctl start instance -d p19c0 -i p19c01crsctl status res -t1.2.3.4.5.
http://www.lryc.cn/news/286542.html

相关文章:

  • 【Java】HttpServlet类中前后端交互三种方式(query string、form表单、JSON字符串)
  • 【深蓝学院】移动机器人运动规划--第2章 基于搜索的路径规划--笔记
  • 安装向量数据库milvus可视化工具attu
  • STM32标准库开发——串口发送/单字节接收
  • jdk17新特性——文本块(即多行的字符串)增强
  • 阿里云ECS使用docker搭建mysql服务
  • Windows给docker设置阿里源
  • 安裝火狐和穀歌流覽器插件FoxyProxy管理海外動態IP代理
  • C++重新入门-函数重载
  • niushop靶场漏洞查找-文件上传漏洞等(超详细)
  • Bit Extraction and Bootstrapping for BGV/BFV
  • 七八分钟快速用k8s部署springboot前后端分离项目
  • 中移(苏州)软件技术有限公司面试问题与解答(2)—— Linux内核内存初始化的完整流程1
  • 蓝桥杯、编程考级、NOC、全国青少年信息素养大赛—scratch列表考点
  • 1.23 力扣图论
  • Vue学习笔记9--vuex(专门在Vue中实现集中式状态(数据)管理的一个Vue插件)
  • Operation
  • Kong关键概念 - 服务(Services)
  • IDEA更改页面不重启
  • golang学习-channel管道
  • oracle 12 查询数据库锁
  • 【LeetCode-135】分发糖果(贪心)
  • 5G_射频测试_发射机测量(四)
  • MySQL经典50题
  • 常用的Qt开源库分享
  • Unity开发授权系统
  • 一周时间,开发了一款封面图生成工具
  • 【.NET Core】深入理解异步编程模型(APM)
  • pyqtgraph绘图类
  • C#6-10新增的内容