oracle集群管理-rac参数文件错误处理

1 从磁盘组中的spfile生成一个pfile


SQL> create pfile from spfile='+DGDATA1/orcl/PARAMETERFILE/spfile.256.1028992457';

2 修改不当得参数

cd $ORACLE_HOME/dbs
vi initorcl.ora
修改操作不当得参数。

3 按照pfile启动数据库到mount并生成新的spfile

[oracle@orclrac01 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Mon Jan 20 14:47:06 2020
Version 19.5.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup mount pfile='/u01/app/oracle/product/19.3/db_1/dbs/initorcl1.ora';
ORACLE instance started.

Total System Global Area 3.7581E+11 bytes
Fixed Size                 30159800 bytes
Variable Size            3.7044E+10 bytes
Database Buffers         2.5233E+11 bytes
Redo Buffers              506707968 bytes
In-Memory Area           8.5899E+10 bytes
Database mounted.
SQL> create spfile='+DGDATA1' from pfile;

File created.

SQL> 

4 查看数据库配置信息


[grid@orclrac01 ~]$ srvctl config database -d orcl
Database unique name: orcl
Database name: orcl
Oracle home: /u01/app/oracle/product/19.3/db_1
Oracle user: oracle
Spfile: +DGDATA1/orcl/PARAMETERFILE/spfile.348.1030200507
Password file: +DGDATA1/orcl/PASSWORD/pwdorcl
Domain: 
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: 
Disk Groups: REDO,DGDATA1
Mount point paths: 
Services: orclapp
Type: RAC
Start concurrency: 
Stop concurrency: 
OSDBA group: dba
OSOPER group: oper
Database instances: orcl1,orcl2
Configured nodes: orclrac01,orclrac02
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services: 
Database is administrator managed‘


5 启动数据库


[grid@orclrac01 ~]$ srvctl start database -d orcl

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值