重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1683|回复: 1
打印 上一主题 下一主题

[体系架构] oracle 19c 如何把administrator 管理的RAC转换为raconenode

[复制链接]
跳转到指定楼层
楼主
发表于 2023-6-20 18:09:27 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
如题,当前为rac,想把它转换为RACONENODE,如何实现?
1.查看当前的类型:
[oracle@rac01 ~]$ srvctl config database -db orcl
Database unique name: orcl
Database name:
Oracle home: /u01/app/oracle/product/19.3.0/db_1
Oracle user: oracle
Spfile: +DATA/ORCL/PARAMETERFILE/spfile.268.1099575253
Password file:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups:
Mount point paths:
Services:
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group: oper
Database instances: orcl1,orcl2
Configured nodes: rac01,rac02
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed


2.转换需要service
[oracle@rac01 ~]$ srvctl convert database -db orcl -dbtype raconenode -instance orcl1
PRCD-1242 : Unable to convert RAC database orcl to RAC One Node database because the database had no service added


3.添加服务
[oracle@rac01 ~]$ srvctl add service -db orcl -service racdb  -preferred orcl1  -available orcl2

[oracle@rac01 ~]$ srvctl status service -db orcl -service racdb
Service racdb is not running.


4.管理员模式只能有一个实例

[oracle@rac01 ~]$ srvctl convert database -db orcl -dbtype raconenode -instance orcl1
PRCD-1214 : Administrator-managed RAC database orcl has more than one instance

5.保留一个实例
[oracle@rac01 ~]$ srvctl remove instance -db orcl -instance orcl2
Remove instance from the database orcl? (y/[n]) y


6.成功转换
[oracle@rac01 ~]$ srvctl convert database -db orcl -dbtype raconenode -instance orcl1

7.验证
  [oracle@rac01 ~]$ srvctl config database -d orcl
Database unique name: orcl
Database name:
Oracle home: /u01/app/oracle/product/19.3.0/db_1
Oracle user: oracle
Spfile: +DATA/ORCL/PARAMETERFILE/spfile.268.1099575253
Password file:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups:
Mount point paths:
Services: racdb
Type: RACOneNode
Online relocation timeout: 30
Instance name prefix: orcl1
Candidate servers: rac01
OSDBA group: dba
OSOPER group: oper
Database instances: orcl1_1
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed










分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2023-6-20 18:15:25 | 只看该作者
要从raconenode转换回RAC

[oracle@rac01 ~]$ srvctl convert database -db orcl -dbtype rac

[oracle@rac01 ~]$ srvctl config database -d orcl
Database unique name: orcl
Database name:
Oracle home: /u01/app/oracle/product/19.3.0/db_1
Oracle user: oracle
Spfile: +DATA/ORCL/PARAMETERFILE/spfile.268.1099575253
Password file:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups:
Mount point paths:
Services: racdb
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group: oper
Database instances: orcl1_1
Configured nodes: rac01
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed
[oracle@rac01 ~]$


[oracle@rac01 ~]$ srvctl add instance -db orcl -instance orcl2 -node rac02

[oracle@rac01 ~]$ srvctl STATUS database -d orcl
Instance orcl1_1 is not running on node rac01
Instance orcl2 is not running on node rac02





回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-25 15:30 , Processed in 0.099506 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表