I got paged over the weekend for an Enterprise Edition Release 19.0.0.0.0 RAC database running out of space. When I attempted to add a new data file with the commands:
alter tablespace USERS add datafile '+DATA' size 31G;
the SQL failed with the response
Attempted to add a datafile but encountered ERROR at line 1: ORA-00059: maximum number of DB_FILES exceeded
I checked the DB_FILES parameter with the command:
SQL> show parameter db_files; NAME TYPE VALUE -------------- ----------- ----- db_files integer 100
Check the number of data files with the below SQL:
SQL> select count(*) from dba_data_files; COUNT(*) ---------- 100
This parameter is not dynamically modifiable, so I issued the command:
alter system set db_files=125 scope=spfile sid='*';
and attempted to do a rolling bounce with:
srvctl stop instance -d PRODDB -i PRODDB4 -o immediate
This resulted in the error
CRS-2974: unable to act on resource 'ora.PRODDB.db' on server 'prodbox87' because that would require stopping or relocating resource 'ora.PRODDB.PRODDB_svc.svc' but the appropriate force flag was not specified
I checked the status of the services with:
srvctl status service -d PRODDB Service PRODDB_svc is running on instance(s) PRODDB1,PRODDB2,PRODDB3,PRODDB4
Since the service was configured to run on the other nodes, I stopped the service on node 4 with:
srvctl stop service -d PRODDB -i PRODDB4
and retried the rolling bounce. The instance shutdown successfully but did not come back up because of the below error:
srvctl start instance -d PRODDB -i PRODDB4 PRCR-1013 : Failed to start resource ora.PRODDB.db PRCR-1064 : Failed to start resource ora.PRODDB.db on node prodbox87 CRS-5017: The resource action "ora.PRODDB.db start" encountered the following error: ORA-01105: mount is incompatible with mounts by other instances ORA-01174: DB_FILES is 125 buts needs to be 100 to be compatible . For details refer to "(:CLSN00107:)" in "/oracle/product/diag/crs/prodbox87/trace/crsd_oraagent_oracle.trc". CRS-2674: Start of 'ora.PRODDB.db' on 'prodbox87' failed
At this point I was forced to perform a bounce of all nodes of the RAC after which I was able to add a new data file.