首页 > 其他分享 >修改ASM实例参数,导致GI集群无法启动

修改ASM实例参数,导致GI集群无法启动

时间:2023-06-16 15:12:28浏览次数:43  
标签:CRS target spfile 实例 ASM SQL Services GI

0、有一套预生产环境,准备在上线之前先进行数据库参数修改。结果在修改ASM内存参数时,忘记reset memory_max_target参数,导致GI集群无法启动。将整个故障记录下来。

 

1、修改ASM实例参数

alter system set processes=1000 scope=spfile sid='*';

alter system set sga_max_size=2G scope=spfile sid='*';

alter system set sga_target=2G scope=spfile sid='*';

alter system set pga_aggregate_target=100M scope=spfile sid='*';

alter system set memory_max_target=0 scope=spfile sid='*';

alter system set memory_target=0 scope=spfile sid='*';

注意:

上述命令会导致故障产生,除了上述参数,还需要执行alter system reset memory_max_target scope=spfile sid='*';

 

 

2、重启GI集群。

[root@11grac1 ~]# crsctl start crs

CRS-4123: Oracle High Availability Services has been started.

[root@11grac1 ~]#

[root@11grac1 ~]# crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4535: Cannot communicate with Cluster Ready Services

CRS-4529: Cluster Synchronization Services is online

CRS-4534: Cannot communicate with Event Manager

可以看出,CRSD服务无法启动。

 

3、查看GI集群日志

2023-06-16 14:26:32.352:

[ohasd(8687)]CRS-2807:Resource 'ora.asm' failed to start automatically.

2023-06-16 14:26:32.352:

[ohasd(8687)]CRS-2807:Resource 'ora.crsd' failed to start automatically.

从集群日志可以看出,ora.asm服务无法启动。

 

4、手动启动ASM实例。

SQL> startup

ORA-00843: Parameter not taking MEMORY_MAX_TARGET into account

ORA-00849: SGA_TARGET 2147483648 cannot be set to more than MEMORY_MAX_TARGET 0.

SQL>

手动启动ASM实例时报错,提示MEMORY_MAX_TARGET为0,而SGA_TARGET参数值大于0,实例无法启动。

 

5、手动编辑ASM的pfile文件

*.processes = 1000

*.large_pool_size = 256M

*.instance_type = "asm"

*.sga_target = 1G

*.pga_aggregate_target=100M

*.remote_login_passwordfile = "EXCLUSIVE"

*.asm_diskstring = "/dev/oracleasm/disks/*"

*.asm_power_limit = 4

*.diagnostic_dest = "/u01/app/oracle"

+ASM2.instance_number=2

+ASM1.instance_number=1

 

6、在任意一个节点,使用pfile启动ASM实例,然后创建spfile,将spfile的位置指定到ASM磁盘组中。

SQL> startup pfile='/tmp/asm.ora';

ASM instance started

 

Total System Global Area 1068937216 bytes

Fixed Size                  2260088 bytes

Variable Size            1041511304 bytes

ASM Cache                  25165824 bytes

ASM diskgroups mounted

SQL> create spfile='+DG_GRID/spfileasm.ora'  from pfile='/tmp/asm.ora';

 

File created.

 

SQL>

 

 

7、重启GI集群。

# crsctl stop crs -f

 

[root@11grac2 ~]# crsctl start crs 

CRS-4123: Oracle High Availability Services has been started.

[root@11grac2 ~]# crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

[root@11grac2 ~]#

可以看到,GI集群已经正常启动。

 

8、检验ASM参数是否已经修改。

SQL> set linesize 200

SQL> show parameter spfile

 

NAME                                 TYPE                              VALUE

------------------------------------ --------------------------------- ------------------------------

spfile                               string                            +DG_GRID/spfileasm.ora

SQL> show parameter sga

 

NAME                                 TYPE                              VALUE

------------------------------------ --------------------------------- ------------------------------

lock_sga                             boolean                           FALSE

sga_max_size                         big integer                       1G

sga_target                           big integer                       1G

SQL> show parameter pga   

 

NAME                                 TYPE                              VALUE

------------------------------------ --------------------------------- ------------------------------

pga_aggregate_target                 big integer                       100M

SQL> show parameter mem

 

NAME                                 TYPE                              VALUE

------------------------------------ --------------------------------- ------------------------------

memory_max_target                    big integer                       1184M

memory_target                        big integer                       1184M

SQL>

 

可见,ASM实例的参数已经修改,也使用了最新的spfile文件。

标签:CRS,target,spfile,实例,ASM,SQL,Services,GI
From: https://www.cnblogs.com/missyou-shiyh/p/17485590.html

相关文章

  • --go_out: protoc-gen-go: plugins are not supported;
    记录问题:--go_out:protoc-gen-go:pluginsarenotsupported;标签(空格分隔):grpc,protoc-gen-gogrpc官网:https://grpc.io/docs/languages/go/quickstart/官网写的要安装以下:$goinstallgoogle.golang.org/protobuf/cmd/[email protected]$goinstallgoogle.golang.or......
  • git cherry-pick 教程
    场景:部分代码变动(某几个提交),这时可以采用Cherrypick。1拿到代码变动提交的log,切换到代码变动的分支,然后查看log.==>gitcheckout变动分支名gitlog在英文状态下输入q!退出log2切换到自己的分支,输入gitcherry-pickgitlog的哈希值3gitpush提交上去下面......
  • AtCoder Beginner Contest 298 Ex Sum of Min of Length
    洛谷传送门AtCoder传送门挺无脑的。是不是因为unr所以评分虚高啊/qd考虑把\(L_i\toR_i\)的路径拎出来,那么路径中点(或中边)左边的点挂的子树到\(L_i\)更优,右边的点挂的子树到\(R_i\)更优。差分一下,可以转化成\(O(q)\)次询问,每次询问形如\((u,v)\)表示求\(v\)......
  • arcgis CGCS2000转GCS_WGS_1984坐标系
    第一步:生成坐标系转换文件方法:ArcToolbox——数据管理工具——投影和变换——创建自定义地理(坐标)变换确定之后,生成名为GCS_WGS_1984—CGCS2000的转换文件。第二步:生成坐标系转换文件方法:ArcToolbox——>数据管理工具——>投影和变换——要素(arcgis10.8已取消要素这一环)——......
  • /*创建消息队列*/ msgid=msgget(IPC_PRIVATE,0666 | IPC_CREAT);
    #include<stdlib.h>#include<stdio.h>#include<string.h>#include<errno.h>#include<unistd.h>#include<sys/types.h>#include<sys/ipc.h>#include<sys/msg.h>#defineMAX_TEXT512structmy_msg_st{......
  • 【笔记】learning git branching
    git图是由子节点指向父节点(可能有多个父节点)gitcommitgitbranchgitmergegitrebase......
  • GitHub Actions by Example
    GitHubActionsbyExampleGitHubActionsisaconvenientCI/CDserviceprovidedbyGitHub.GitHubActionsbyExample isanintroductiontotheservicethroughannotatedexamples.HelloWorldEventTriggersActionsEnvironmentVariablesParallelJobsJob......
  • git代码上传仓库
    1.从仓库下载release版本代码gitclonehttps:xxx2.创建新分支(1)查看现有分支gitbranch-a(2)创建新分支gitbranchXXX(3)重复(1)查看是否成功创建3.切换分支gitcheckoutXXX4.通过BeyondCompare4进行代码比较与替换(1)打开clone下来的代码与需上传的代码 ......
  • Linux下嵌入式Web服务器BOA和CGI编程开发
    https://blog.csdn.net/Ikaros_521/article/details/102610768一、环境搭建操作系统:Ubuntu12.04LTS(CentOS7类似0.0)boa下载地址(网址突然又挂了):http://www.boa.org/官方文档:http://www.boa.org/documentation/boa-2.htmlGitHub仓库:https://github.com/gpg/boa我是其他网站找......
  • git 解决 both modified 冲突
     >解决此冲突分为两种需求:1.查看冲突,选择需要保留的修改,解决冲突并提交到服务器2.撤销自己本地的修改,并且不提交>注释:需求1比较普遍,解决冲突后直接提交就好了,此处不详说,重点讲需求2以需求2为目的,提供以下解决方案,操作步骤如下:     1.gitstatus查看状态......