Database not starting after disk hardware fault. The following error occurs.
SQL> startup ;
ORACLE instance started.
Total System Global Area 266485920 bytes
Fixed Size 73888 bytes
Variable Size 71385088 bytes
Database Buffers 194846720 bytes
Redo Buffers 180224 bytes
Database mounted.
ORA1113: file 4 needs media recovery
ORA1110: data file 4: ‘/u01/app/oracle/oradata/gendm/temp01.dbf’
The archive logs are not available, so we would have to restore from the last good backup taken on 21/03/04. What would be the impact on the other gensys databases and the rest of the gensys application if the Data Mart instance was recovered from the backup of 21/03 ?
Currently the ODS database is collating and holding the data as the datamart database is down.
I think the datanart and other DBs will be OK providing it’s the datamart that has only been affected. You will have lost any data between the 23/3/04 backup that isn’t contained in the ODS(s).
As soon as you start the ETL, the chunks will be copied across as nornal, though it will take a while (possibly tens of hours) for ETL to catch up fully.
I have restored the database back to Sunday and restarted the ETLService process. The java processes are clocking up CPU time but the data is not copying from the ODS database tot he DataMart database.
So far we have restored the DM database back to 21st March 2004. The database restored ok and restarted fine. No archive logs were available… we have a lot of recommendations to make after this!
There is data in the ODS database which is already marked as transferred from Monday 22nd and no data for Tuesday as the system was unavailable – I am happy to accept that we may loose this data.
The next available data in ODS is from Wednesday. Once the DM database is started and the ETService process is running I assumed that the data should start copying from ODS to DM. We left this over night and still cannot see the data in DM (via crystal reports).
From searching Genesys tickets it appears this may be to do with trying to insert duplicate rows from ODS to Datamart but I am unsure how to overcome this. Your help is appreciated…
I suggest not to use reporting tool (Crystal Report as you said in your case or Brio) to find out if data are in DM (data can be already in your DB but not shown in report due to other reasons). Use ETLAssistant to find out where the problem is
data not transferred/data not aggregated.
Then you can stop your ETL Service and run manually needed processes I did so a few times and usually it helped.
Make sure that you have a full backup. (ARCHIVE+REDO) should be fine. just, PLEASE make sure that Oracle DB engineer does it.
I guess you can always do EXPORT…
You see, looking through the part of ETL log that you have provided, I have noticed that ETL fails on writing into DB.
And it is failing so on writing the log part. The error by itself says that primary key is not unique. It is really hard for me to fully assess the situation by looking only at that part of the log.
How did you recover your DB? did you rebuild DB by creating a new database, ran Datamart script and then imported the data? Or did you actually use a backup tool?
Also, change ETL log trace level so that we can actually see SQL statement issued by it. This way you can see EXACTLY where the error occurs as well as the values.