|
数据库:oracle 19.14 + rac
系统:CentOS 7.9
修改db_files参数操作演练:
SQL> show parameter db_files;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_files integer 200
SQL> alter system set db_files=1000 scope=spfile sid='*';
System altered.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 3640654056 bytes
Fixed Size 8902888 bytes
Variable Size 855638016 bytes
Database Buffers 2768240640 bytes
Redo Buffers 7872512 bytes
ORA-01105: mount is incompatible with mounts by other instances
ORA-01174: DB_FILES is 1000 buts needs to be 200 to be compatible
此异常原因为rac节点间的db_files参数不一致,不能分别重启实例,需要整个重启数据库。
[grid@hisdb1 ~]$ srvctl stop database -d orcl
[grid@hisdb1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE ONLINE hisdb1 STABLE
ONLINE ONLINE hisdb2 STABLE
ora.chad
ONLINE ONLINE hisdb1 STABLE
ONLINE ONLINE hisdb2 STABLE
ora.net1.network
ONLINE ONLINE hisdb1 STABLE
ONLINE ONLINE hisdb2 STABLE
ora.ons
ONLINE ONLINE hisdb1 STABLE
ONLINE ONLINE hisdb2 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
1 ONLINE ONLINE hisdb1 STABLE
2 ONLINE ONLINE hisdb2 STABLE
3 ONLINE OFFLINE STABLE
ora.DATA.dg(ora.asmgroup)
1 ONLINE ONLINE hisdb1 STABLE
2 ONLINE ONLINE hisdb2 STABLE
3 OFFLINE OFFLINE STABLE
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE hisdb2 STABLE
ora.OCR.dg(ora.asmgroup)
1 ONLINE ONLINE hisdb1 STABLE
2 ONLINE ONLINE hisdb2 STABLE
3 OFFLINE OFFLINE STABLE
ora.asm(ora.asmgroup)
1 ONLINE ONLINE hisdb1 Started,STABLE
2 ONLINE ONLINE hisdb2 Started,STABLE
3 OFFLINE OFFLINE STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
1 ONLINE ONLINE hisdb1 STABLE
2 ONLINE ONLINE hisdb2 STABLE
3 OFFLINE OFFLINE STABLE
ora.cvu
1 ONLINE ONLINE hisdb2 STABLE
ora.hisdb1.vip
1 ONLINE ONLINE hisdb1 STABLE
ora.hisdb2.vip
1 ONLINE ONLINE hisdb2 STABLE
ora.orcl.db
1 OFFLINE OFFLINE Instance Shutdown,ST
ABLE
2 OFFLINE OFFLINE Instance Shutdown,ST
ABLE
ora.qosmserver
1 ONLINE ONLINE hisdb2 STABLE
ora.scan1.vip
1 ONLINE ONLINE hisdb2 STABLE
--------------------------------------------------------------------------------
[grid@hisdb1 ~]$ srvctl start database -d orcl
[grid@hisdb1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE ONLINE hisdb1 STABLE
ONLINE ONLINE hisdb2 STABLE
ora.chad
ONLINE ONLINE hisdb1 STABLE
ONLINE ONLINE hisdb2 STABLE
ora.net1.network
ONLINE ONLINE hisdb1 STABLE
ONLINE ONLINE hisdb2 STABLE
ora.ons
ONLINE ONLINE hisdb1 STABLE
ONLINE ONLINE hisdb2 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
1 ONLINE ONLINE hisdb1 STABLE
2 ONLINE ONLINE hisdb2 STABLE
3 ONLINE OFFLINE STABLE
ora.DATA.dg(ora.asmgroup)
1 ONLINE ONLINE hisdb1 STABLE
2 ONLINE ONLINE hisdb2 STABLE
3 OFFLINE OFFLINE STABLE
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE hisdb2 STABLE
ora.OCR.dg(ora.asmgroup)
1 ONLINE ONLINE hisdb1 STABLE
2 ONLINE ONLINE hisdb2 STABLE
3 OFFLINE OFFLINE STABLE
ora.asm(ora.asmgroup)
1 ONLINE ONLINE hisdb1 Started,STABLE
2 ONLINE ONLINE hisdb2 Started,STABLE
3 OFFLINE OFFLINE STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
1 ONLINE ONLINE hisdb1 STABLE
2 ONLINE ONLINE hisdb2 STABLE
3 OFFLINE OFFLINE STABLE
ora.cvu
1 ONLINE ONLINE hisdb2 STABLE
ora.hisdb1.vip
1 ONLINE ONLINE hisdb1 STABLE
ora.hisdb2.vip
1 ONLINE ONLINE hisdb2 STABLE
ora.orcl.db
1 ONLINE ONLINE hisdb1 Open,HOME=/u01/app/o
racle/product/19.3.0
/db,STABLE
2 ONLINE ONLINE hisdb2 Open,HOME=/u01/app/o
racle/product/19.3.0
/db,STABLE
ora.qosmserver
1 ONLINE ONLINE hisdb2 STABLE
ora.scan1.vip
1 ONLINE ONLINE hisdb2 STABLE
--------------------------------------------------------------------------------
如上,数据库成功开启.
|
|