在pga_aggregate_limit参数后,使用srvctl stop database -d orcl后,无法启动了,尝试手动启动单个节点时报错如下,明白是pga_aggregate_limit的参数配置太小导致的问题
在单个节点上操作即可
orcl1:/home/oracle@db1> sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Sat May 13 13:45:03 2023
Version 19.19.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to an idle instance.
SYS@orcl1> startup nomount;
ORA-00093: pga_aggregate_limit must be between 49152M and 100000G
ORA-01078: failure in processing system parameters
SYS@orcl1> create pfile='/tmp/orcl.pfile' from spfile='+DATA/ORCL/PARAMETERFILE/spfile.268.1136654387';
File created.
新开一个窗口,编辑/tmp/orcl.pfile文件,调整pga_aggregate_limit值大于要求的值后保存
SYS@orcl1> startup nomount pfile='/tmp/orcl.pfile;
ORACLE instance started.
Total System Global Area 4.2950E+10 bytes
Fixed Size 37248056 bytes
Variable Size 6710886400 bytes
Database Buffers 3.6105E+10 bytes
Redo Buffers 96968704 bytes
SYS@orcl1> create spfile='+DATA/ORCL/PARAMETERFILE/spfile.268.1136654387' from pfile='/tmp/orcl.pfile';
create spfile='+DATA/ORCL/PARAMETERFILE/spfile.268.1136654387' from pfile='/tmp/orcl.pfile'
*
ERROR at line 1:
ORA-17502: ksfdcre:4 Failed to create file
+DATA/ORCL/PARAMETERFILE/spfile.268.1136654387
ORA-15046: ASM file name '+DATA/ORCL/PARAMETERFILE/spfile.268.1136654387'
is not in single-file creation form
SYS@orcl1> create spfile='+DATA' from pfile='/tmp/jwptdb.pfile';
File created.
SYS@orcl1> shutdown immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
SYS@orcl1>
退出sql界面,启动两个节点的实例
orcl1:/home/oracle@db1> srvctl start database -d orcl
+ASM1:/home/grid@db1>srvctl config database -d orcl
Database unique name: orcl
Database name: orcl
Oracle home: /u01/app/oracle/product/19.0.0/db_1
Oracle user: oracle
Spfile: +DATA/ORCL/PARAMETERFILE/spfile.312.1136728025
Password file: +DATA/ORCL/PASSWORD/pwdorcl.269.1136658093
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups: FRA,DATA
Mount point paths:
Services:
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group: oper
Database instances: orcl1,orcl2
Configured nodes: db1,db2
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed