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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章