cloning problem: ORA-00059: maximum number of DB_FILES exceeded
Hi everyone!
I'm trying to clone our data warehouse over an existing test instance, DMART01. Here's what I did:
1. on the data warehouse - alter database backup controlfile to trace;
2. edited the trace file to change the db name and path of the datafiles
3. logon to sqlplus in DMART01 and run my altered trace file.
4. Below is the error I'm getting:
SQL> @clone09142009.sql
ORACLE instance started.
Total System Global Area 1358954496 bytes
Fixed Size 2128280 bytes
Variable Size 1203668584 bytes
Database Buffers 150994944 bytes
Redo Buffers 2162688 bytes
CREATE CONTROLFILE REUSE SET DATABASE "DMART01" RESETLOGS NOARCHIVELOG
*
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-00059: maximum number of DB_FILES exceeded
ORA-01110: data file 211:
'/data/oracle/dmart01/d05/oracle/dmart01data/DW_PROD_MEDIUM11.dbf'
In my trace file it has
CREATE CONTROLFILE REUSE SET DATABASE "DMART01" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 500
MAXINSTANCES 1
MAXLOGHISTORY 1816
Additional information - the data warehouse has an entire tablespace with many datafiles that I don't want in DMART01. I edited those datafile lines out of my trace file. Could some remnants of that be causing my problems? The DB_FILES parameter in the warehouse is set to 500. In DMART01 it's only 200. In the clone, I only want to bring over 61 datafiles. Besides, I thought that in the create controlfile statement would set the parameter, in this case to 500.
I'm stumped. Any suggestions?
Thanks!
Sharon