ORA-01190
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01190: control file or data file 22 is from before the last RESETLOGS
ORA-01110: data file 22: '/u04/oracle/oradata/ora01/INDX/INDX_01.dbf'
Solution Action :restore the file from most recent backup
But the thing is i dont have backup with me.
And archive logs are not available
What would be another solution?
Thanks,
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01190: control file or data file 22 is from before the last RESETLOGS
ORA-01110: data file 22: '/u04/oracle/oradata/ora01/INDX/INDX_01.dbf'
On this datafiles, What do you store? index only right?
So, You can alter this file offline and then alter database open. After that check your object on this tablespace.
SQL> alter database datafile 22 offline;
SQL> alter database open;
Check objects on this:
SQL> select owner, index_name, tablespace_name from dba_indexes where tablespace_name in (select tablespace_name from dba_data_files where file_id= 22);
recreate them (index)...
By the way you have tables on this tablespace, you should try another solution else.....
Similar Messages
-
ORA-01190: control file or data file 1 is from before the last RESETLOGS
hi, experts.
i have oradb 11g and using it for OIM11
after some actions in oim i try to get my db to previous state (many times it was done successfully)
but now i have problem ORA-01190: control file or data file 1 is from before the last RESETLOGS
im runing in noarchivelog mode
i have autobackup of controlfile and i have 2 backups of my db
please help me
maybe some one know how to restore my backup to new db and then change configuration of wls and oim...Hi, Thanks for reply
List of Database Incarnations
DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
1 1 OIMDB 2372279074 PARENT 1 02-APR-10
2 2 OIMDB 2372279074 PARENT 940976 11-JUL-11
3 3 OIMDB 2372279074 PARENT 5590849 09-AUG-11
4 4 OIMDB 2372279074 PARENT 5590850 10-AUG-11
5 5 OIMDB 2372279074 PARENT 5596482 11-AUG-11
7 7 OIMDB 2372279074 PARENT 5596483 11-AUG-11
8 8 OIMDB 2372279074 PARENT 5596484 12-AUG-11
6 6 OIMDB 2372279074 ORPHAN 5622931 11-AUG-11
9 9 OIMDB 2372279074 PARENT 5627526 18-AUG-11
10 10 OIMDB 2372279074 PARENT 5627527 18-AUG-11
11 11 OIMDB 2372279074 ORPHAN 5627528 18-AUG-11
12 12 OIMDB 2372279074 CURRENT 5627528 18-AUG-11
RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
9 Full 1.50G DISK 00:00:31 12-AUG-11
BP Key: 9 Status: AVAILABLE Compressed: NO Tag: TAG20110812T114515
Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_12\O1_MF_NNNDF_TAG20110812T114515_749PJDCW_.BKP
List of Datafiles in backup set 9
File LV Type Ckp SCN Ckp Time Name
1 Full 5627525 12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSTEM01.DBF
2 Full 5627525 12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSAUX01.DBF
3 Full 5627525 12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\UNDOTBS01.DBF
4 Full 5627525 12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\USERS01.DBF
5 Full 5627525 12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIMLOB.DBF
6 Full 5627525 12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_IASSDPM.DBF
7 Full 5627525 12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_MDS.DBF
8 Full 5627525 12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_SOAINFRA.DBF
9 Full 5627525 12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIM.DBF
BS Key Type LV Size Device Type Elapsed Time Completion Time
10 Full 9.36M DISK 00:00:01 12-AUG-11
BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20110812T114515
Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_12\O1_MF_NCSNF_TAG20110812T114515_749PKJJS_.BKP
SPFILE Included: Modification time: 12-AUG-11
SPFILE db_unique_name: OIMDB
Control File Included: Ckp SCN: 5627525 Ckp time: 12-AUG-11
BS Key Type LV Size Device Type Elapsed Time Completion Time
11 Full 1.33G DISK 00:00:26 16-AUG-11
BP Key: 11 Status: AVAILABLE Compressed: NO Tag: TAG20110816T094954
Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_16\O1_MF_NNNDF_TAG20110816T094954_74N183D7_.BKP
List of Datafiles in backup set 11
File LV Type Ckp SCN Ckp Time Name
1 Full 6118204 16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSTEM01.DBF
2 Full 6118204 16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSAUX01.DBF
3 Full 6118204 16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\UNDOTBS01.DBF
4 Full 6118204 16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\USERS01.DBF
5 Full 6118204 16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIMLOB.DBF
6 Full 6118204 16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_IASSDPM.DBF
7 Full 6118204 16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_MDS.DBF
8 Full 6118204 16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_SOAINFRA.DBF
9 Full 6118204 16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIM.DBF
BS Key Type LV Size Device Type Elapsed Time Completion Time
12 Full 9.36M DISK 00:00:01 16-AUG-11
BP Key: 12 Status: AVAILABLE Compressed: NO Tag: TAG20110816T094954
Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_16\O1_MF_NCSNF_TAG20110816T094954_74N197JO_.BKP
SPFILE Included: Modification time: 16-AUG-11
SPFILE db_unique_name: OIMDB
Control File Included: Ckp SCN: 6118204 Ckp time: 16-AUG-11How to reset database to right incarnation.? -
ORA-01190 while opening the database
Hello,
I am working on a noarchivelog database,
I did a full database restore and recover from a full database backup and i opened the database with resetlogs. then i had falure on one data file so i restored the database again but when i tried to open it , it generates ORA-01190, and i cannot be opened, i can only be mounted.
Knowing that i do not have a backup between the two restores.
Any solution for this issue ?
Thanks.
NaelHello,
It appears on datafile 1 after the resetlogs, i did my first restore and i opened the database with reset logs and then when restored for the 2nd time i was not able to open the database because of the ORA-1190 on datafile 1.
As for point a and b i did not do both, just a restore and then recovery for the whole database.
thanks,
Nael -
Hi,
i got the following message after the db-copy!
Copy from AA1 to AB1
ORA-01190: controlfile or data file 75 is from before the last RESETLOGS
ORA-01110: data file 75: '/oracle/AB1/data2/data15/data15'
Can anybody advise me how i can solve tis problem?
ThanksFlow these steps
1. Take a physicall backup of the ur primary database
2. take a backup controlfile trace file from primary
3. restore only the datafiles and plan backup controlfile to secondary
4. recreate controlfile changing ur database name and file locations
5. issue recover automatic database until cancel using backup controlfile
6. alter database open resetlogs
7. add tempfiles
Regards
Marcio Paiva -
Recovery error: ORA-01190
Hi,
i have oracle10.2.0.4 installed on windows xp.
i was doing some recovery from my cold backups after one of the tablespace test01.dbf was removed accidently.
i did the recovery steps but now i am getting this error:
ORA-01190: control file or data file 1 is from before the last RESETLOGS
when i do the
alter database open resetlogs;Can someone help me how to fix this.
Thanks in advance,
Philip.Error: ORA 1190
Text: control file or datafile <name> is from before the last RESETLOGS
Cause: An attempt was made to perform media recovery when the redo log reset
information in a datafile does not match the control file.
Either the datafile or the control file must be a backup that was made
before the most recent ALTER DATABASE OPEN RESETLOGS.
Action: Restore the file from a more recent backup.
According to the message there was already a RESETLOGS. Recovery through RESETLOGS is simplified in 10g and higher, is it possible you restored the datafile,but didn't recover it (by applying archivelogs)?
Werner -
Got error while recover controlfile with rman
Dear all,
My controlfile and some datafiles were crash and i tried to recover their with rman as the following step:
1. startup nomount;
2. restore controlfile from autobackup;
3. alter database mount;
4. restore database;
5.SELECT archivelog_change#-1 FROM v$database;
ARCHIVELOG_CHANGE#-1
1301671
6.run {
set until scn 1301671;
recover database;
executing command: SET until clause
Starting recover at 01 พ.ย. 2006
using channel ORA_DISK_1
starting media recovery
media recovery failed
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 11/01/2006 15:38:01
ORA-00283: recovery session canceled due to errors
RMAN-11003: failure during parse/execution of SQL statement: alter database reco
ver if needed
start until change 1301671 using backup controlfile
ORA-00283: recovery session canceled due to errors
ORA-01190: controlfile or data file 1 is from before the last RESETLOGS
ORA-01110: data file 1: 'C:\ORACLE\ORADATA\DB01\SYSTEM01.DBF'
What happend? Please give me some advise.
Thaks for advance !
CharaAfter every resetlogs you have to take fresh backup.
It seems you have opened your database in resetlogs and your backup is prior to this resetlogs.So the controlfile is showing inconsistance with the other datafiles. -
Error while duplicating a Database
Hi,
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
OS:Solaris10.
I am trying to create a replica of one of my Production DB for test envoirment...
The steps I followed are....
sql>connect /as sysdba
sql>alter system enable restricted session;
sql>alter database backup controlfile to trace;
Shutting down the Primary Instance....
sql>shutdown immediate
Moving the Datafiles and Logfiles to the respective Partitions of the New Test Database
Moving the init<oracle_sid>.ora files to new DB partition
Connecting to the sqlplus in the newdb and executing the create database execution script...
Now the Test Database is created and is in mounted Mode
SQL> select open_mode from v$database;
OPEN_MODE
MOUNTED
Now when I am trying to open the Database with Resetlogs option its showing me the Following Error........
sql> alter database open resetlogs;
alter database open
ERROR at line 1:
ORA-01190: control file or data file 5 is from before the last RESETLOGS
ORA-01110: data file 5: '/u09/oradata/nnm8i/indx01.dbf'
How to recover from this error...........
Any Help Appreciated.........
Regards,
Prosenjit Mukherjee.
Edited by: Prosenjit on Nov 9, 2008 5:49 PMWell I issued the ...*Recover Database* Command..
I got some input regarding this error from this particular Thomas Kyte Thread thread...
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:318216852435
Regards,
Prosenjit Mukherjee -
Control file lost and datafile addeed restore/recovery with no data loss
Here i have tried to the following
created new table called t2 and made sure data went to a specific tablespace...
took a level 0 backup
removed the control file
added couple of datafile to above tablespace and then inserted more data
then went out to restore control file and the database...but datafile still could not be opened ?? what did i do wrong here....
SQL> @datafile
-- list of datafile
Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT
UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES
USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES
CNT_TST Datafile ONLINE AVAILABLE 1 9 10 0 /data3/trgt/cnt_tst01.dbf 7 NO
SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES
USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES
SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES
USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES
7 rows selected.
-- new table is created called t2 and its going into TS called cnt_tst
SQL> CREATE TABLE TEST.T2
C1 DATE,
C2 NUMBER,
C3 NUMBER,
C4 VARCHAR2(300 BYTE)
TABLESPACE cnt_tst; 2 3 4 5 6 7 8
Table created.
-- data inserted
SQL> INSERT INTO
test.T2
SELECT
FROM
(SELECT
SYSDATE,
ROWNUM C2,
DECODE(MOD(ROWNUM,100),99,99,1) C3,
RPAD('A',300,'A') C4
FROM
DUAL
CONNECT BY
LEVEL <= 10000)
; 2 3 4 5 6 7 8 9 10 11 12 13 14 15
10000 rows created.
SQL> commit;
Commit complete.
-- to check of cnt_tst has any free space or not, as we can see its full
SQL> @datafile
Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT
UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES
USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES
SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES
USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES
SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES
USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES
CNT_TST Datafile ONLINE AVAILABLE 10 0 10 0 /data3/trgt/cnt_tst01.dbf 7 NO
7 rows selected.
SQL> select count(*) from test.t2;
COUNT(*)
10000
1 row selected.
-- to get a count and max on date
SQL> select max(c1) from test.t2;
MAX(C1)
29-feb-12 13:47:52
1 row selected.
SQL> -- AT THIS POINT A LEVEL 0 BACKUP IS TAKEN (using backup database plus archivelog)
SQL> -- now control files are removed
SQL> select name from v$controlfile;
NAME
/ctrl/trgt/control01.ctl
/ctrl/trgt/control02.ctl
2 rows selected.
SQL>
SQL> ! rm /ctrl/trgt/control01.ctl
SQL> ! rm /ctrl/trgt/control02.ctl
SQL> ! ls -ltr /ctrl/trgt/
ls: /ctrl/trgt/: No such file or directory
SQL>
-- new datafile is added to CNT_TST TABLESPACE and new data is added as well
SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST02.dbf' SIZE 100M AUTOEXTEND OFF;
Tablespace altered.
SQL> ALTER SYSTEM CHECKPOINT;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST03.dbf' SIZE 100M AUTOEXTEND OFF;
Tablespace altered.
SQL> INSERT INTO
test.T2
SELECT
FROM
(SELECT
SYSDATE,
ROWNUM C2,
DECODE(MOD(ROWNUM,100),99,99,1) C3,
RPAD('A',300,'A') C4
FROM
DUAL
CONNECT BY
LEVEL <= 10000)
; 2 3 4 5 6 7 8 9 10 11 12 13 14 15
10000 rows created.
SQL> /
10000 rows created.
SQL> commit;
Commit complete.
SQL> INSERT INTO
test.T2
SELECT
FROM
(SELECT
SYSDATE,
ROWNUM C2,
DECODE(MOD(ROWNUM,100),99,99,1) C3,
RPAD('A',300,'A') C4
FROM
DUAL
CONNECT BY
LEVEL <= 40000)
; 2 3 4 5 6 7 8 9 10 11 12 13 14 15
40000 rows created.
SQL> commit;
Commit complete.
SQL> @datafile
-- to make sure new datafile has been registered with the DB
Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT
CNT_TST Datafile ONLINE AVAILABLE 9 91 100 0 /data3/trgt/CNT_TST03.dbf 9 NO
UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES
USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES
CNT_TST Datafile ONLINE AVAILABLE 9 91 100 0 /data3/trgt/CNT_TST02.dbf 8 NO
SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES
USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES
SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES
USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES
CNT_TST Datafile ONLINE AVAILABLE 10 0 10 0 /data3/trgt/cnt_tst01.dbf 7 NO
9 rows selected.
-- now the count and max ... note count before backup was 10000 and max(c1) was diff
SQL> select count(*) from test.t2;
COUNT(*)
70000
1 row selected.
SQL> select max(c1) from test.t2;
MAX(C1)
29-feb-12 13:58:25
1 row selected.
SQL> -- now restore starts
SQL> shutdown abort;
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@berry trgt]$ rman
Recovery Manager: Release 11.2.0.1.0 - Production on Wed Feb 29 14:01:48 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN> connect catalog rman/pass@rcat
connected to recovery catalog database
RMAN> connect target /
connected to target database (not started)
RMAN> startup nomount;
Oracle instance started
Total System Global Area 188313600 bytes
Fixed Size 1335388 bytes
Variable Size 125833124 bytes
Database Buffers 58720256 bytes
Redo Buffers 2424832 bytes
RMAN> restore controlfile from autobackup;
Starting restore at 29-FEB-12 14:02:37
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=20 device type=DISK
recovery area destination: /backup/trgt/flash_recovery_area
database name (or database unique name) used for search: TRGT
channel ORA_DISK_1: no AUTOBACKUPS found in the recovery area
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120229
channel ORA_DISK_1: AUTOBACKUP found: /backup/trgt/backup/cont_c-3405317011-20120229-09
channel ORA_DISK_1: restoring control file from AUTOBACKUP /backup/trgt/backup/cont_c-3405317011-20120229-09
channel ORA_DISK_1: control file restore from AUTOBACKUP complete
output file name=/ctrl/trgt/control01.ctl
output file name=/ctrl/trgt/control02.ctl
Finished restore at 29-FEB-12 14:02:39
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN> recover database;
Starting recover at 29-FEB-12 14:02:55
Starting implicit crosscheck backup at 29-FEB-12 14:02:55
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=20 device type=DISK
Crosschecked 96 objects
Finished implicit crosscheck backup at 29-FEB-12 14:02:57
Starting implicit crosscheck copy at 29-FEB-12 14:02:57
using channel ORA_DISK_1
Finished implicit crosscheck copy at 29-FEB-12 14:02:57
searching for all files in the recovery area
cataloging files...
no files cataloged
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 13 is already on disk as file /redo_archive/trgt/online/redo01.log
archived log for thread 1 with sequence 14 is already on disk as file /redo_archive/trgt/online/redo02.log
archived log for thread 1 with sequence 15 is already on disk as file /redo_archive/trgt/online/redo03.log
archived log file name=/redo_archive/trgt/archive/1_10_776523284.dbf thread=1 sequence=10
archived log file name=/redo_archive/trgt/archive/1_10_776523284.dbf thread=1 sequence=10
archived log file name=/redo_archive/trgt/archive/1_11_776523284.dbf thread=1 sequence=11
archived log file name=/redo_archive/trgt/archive/1_12_776523284.dbf thread=1 sequence=12
archived log file name=/redo_archive/trgt/online/redo01.log thread=1 sequence=13
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 02/29/2012 14:02:59
ORA-01422: exact fetch returns more than requested number of rows
RMAN-20505: create datafile during recovery
RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/redo_archive/trgt/online/redo01.log'
ORA-00283: recovery session canceled due to errors
ORA-01244: unnamed datafile(s) added to control file by media recovery
ORA-01110: data file 9: '/data3/trgt/CNT_TST03.dbf'
RMAN> -- wnet to session 2 and renamed datafile from unammed-- wnet to session 2 and renamed datafile for unammed file
SQL> select name from v$datafile;
NAME
/data/trgt/system01.dbf
/data/trgt/sysaux01.dbf
/data/trgt/undotbs01.dbf
/data3/trgt/move/users01.dbf
/data3/trgt/user02.dbf
/data3/trgt/users03.dbf
/data3/trgt/cnt_tst01.dbf
/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00008
/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00009
9 rows selected.
SQL> alter database create datafile '/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00008' as '/data3/trgt/CNT_TST02.dbf';
Database altered.
SQL> alter database create datafile '/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00009' as '/data3/trgt/CNT_TST03.dbf';
Database altered.
SQL> select name from v$datafile;
NAME
/data/trgt/system01.dbf
/data/trgt/sysaux01.dbf
/data/trgt/undotbs01.dbf
/data3/trgt/move/users01.dbf
/data3/trgt/user02.dbf
/data3/trgt/users03.dbf
/data3/trgt/cnt_tst01.dbf
/data3/trgt/CNT_TST02.dbf
/data3/trgt/CNT_TST03.dbf
9 rows selected.after above was done, went back to session 1 and tried recovered the DB
RMAN> recover database;
Starting recover at 29-FEB-12 14:06:16
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 13 is already on disk as file /redo_archive/trgt/online/redo01.log
archived log for thread 1 with sequence 14 is already on disk as file /redo_archive/trgt/online/redo02.log
archived log for thread 1 with sequence 15 is already on disk as file /redo_archive/trgt/online/redo03.log
archived log file name=/redo_archive/trgt/online/redo01.log thread=1 sequence=13
archived log file name=/redo_archive/trgt/online/redo02.log thread=1 sequence=14
archived log file name=/redo_archive/trgt/online/redo03.log thread=1 sequence=15
media recovery complete, elapsed time: 00:00:00
Finished recover at 29-FEB-12 14:06:17
RMAN> alter database open resetlogs;
database opened
new incarnation of database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
starting full resync of recovery catalog
full resync complete
RMAN> exit
Recovery Manager complete.
[oracle@berry trgt]$
[oracle@berry trgt]$
[oracle@berry trgt]$ sq
SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 29 14:07:18 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter session set NLS_DATE_FORMAT="dd-mon-yy hh24:mi:ss:
2
SQL>
SQL> alter session set NLS_DATE_FORMAT="dd-mon-yy hh24:mi:ss";
Session altered.
SQL> select count(*) from test.t2;
select count(*) from test.t2
ERROR at line 1:
ORA-00376: file 8 cannot be read at this time
ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf'
SQL> select max(c1) from test.t2;
select max(c1) from test.t2
ERROR at line 1:
ORA-00376: file 8 cannot be read at this time
ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf'
SQL> alter database datafile 8 online;
alter database datafile 8 online
ERROR at line 1:
ORA-01190: control file or data file 8 is from before the last RESETLOGS
ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf'
{code}
so what did i do wrong in my recovery that i could not get my data?? how can i avoid this?? and restore my DB?
Edited by: user8363520 on Feb 29, 2012 12:24 PMuser8363520 wrote:
Here i have tried to the following
created new table called t2 and made sure data went to a specific tablespace...
took a level 0 backup
removed the control file
added couple of datafile to above tablespace and then inserted more data
then went out to restore control file and the database...but datafile still could not be opened ?? what did i do wrong here....
SQL> @datafile
-- list of datafile
Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT
UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf ; 3 YES
USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf ; 5 YES
CNT_TST Datafile ONLINE AVAILABLE 1 9 10 0 /data3/trgt/cnt_tst01.dbf ; 7 NO
SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf ; 2 YES
USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf ; 4 YES
SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf ; 1 YES
USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf ; 6 YES
7 rows selected.
-- new table is created called t2 and its going into TS called cnt_tst
SQL> CREATE TABLE TEST.T2
C1 DATE,
C2 NUMBER,
C3 NUMBER,
C4 VARCHAR2(300 BYTE)
TABLESPACE cnt_tst; 2 3 4 5 6 7 8
Table created.
-- data inserted
SQL> INSERT INTO
test.T2
SELECT
FROM
(SELECT
SYSDATE,
ROWNUM C2,
DECODE(MOD(ROWNUM,100),99,99,1) C3,
RPAD('A',300,'A') C4
FROM
DUAL
CONNECT BY
LEVEL <= 10000)
; 2 3 4 5 6 7 8 9 10 11 12 13 14 15
10000 rows created.
SQL> commit;
Commit complete.
-- to check of cnt_tst has any free space or not, as we can see its full
SQL> @datafile
Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT
UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf ; 3 YES
USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf ; 5 YES
SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf ; 2 YES
USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf ; 4 YES
SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf ; 1 YES
USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf ; 6 YES
CNT_TST Datafile ONLINE AVAILABLE 10 0 10 0 /data3/trgt/cnt_tst01.dbf ; 7 NO
7 rows selected.
SQL> select count(*) from test.t2;
COUNT(*)
10000
1 row selected.
-- to get a count and max on date
SQL> select max(c1) from test.t2;
MAX(C1)
29-feb-12 13:47:52
1 row selected.
SQL> -- AT THIS POINT A LEVEL 0 BACKUP IS TAKEN (using backup database plus archivelog)
SQL> -- now control files are removed
SQL> select name from v$controlfile;
NAME
/ctrl/trgt/control01.ctl
/ctrl/trgt/control02.ctl
2 rows selected.
SQL>
SQL> ! rm /ctrl/trgt/control01.ctl
SQL> ! rm /ctrl/trgt/control02.ctl
SQL> ! ls -ltr /ctrl/trgt/
ls: /ctrl/trgt/: No such file or directory
SQL>
-- new datafile is added to CNT_TST TABLESPACE and new data is added as well
SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST02.dbf' SIZE 100M AUTOEXTEND OFF;
Tablespace altered.
SQL> ALTER SYSTEM CHECKPOINT;
System altered. Upto this i was clear, but now i cann't understand when you actually dropped the control file from you database(in running stat) how can you perform "alter system checkpoint" and other "alter tablespace.." command? Once controlfile is inaccessible, oracle database is not suppose to function. -
My database in noarchivelog mode. How I can open it?
-bash-3.00$ sqlplus system as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 17 15:24:45 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select open_mode from v$database;
OPEN_MODE
MOUNTED
SQL> startup;
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01190: control file or data file 1 is from before the last RESETLOGS
ORA-01110: data file 1: '/oracle/app/oradata/Arju/system01.dbf'
SQL> !rman
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 17 15:27:28 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> connect target;
connected to target database: ARJU (DBID=222697548, not open)
RMAN> list backup;
using target database control file instead of recovery catalog
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1 Full 521.71M DISK 00:01:11 11-JUL-07
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20070711T105344
Piece Name: /oracle/app/flash_recovery_area/ARJU/backupset/2007_07_11/o1_mf_nnndf_TAG20070711T105344_399vqr8f_.bkp
List of Datafiles in backup set 1
File LV Type Ckp SCN Ckp Time Name
1 Full 598070 11-JUL-07 /oracle/app/oradata/Arju/system01.dbf
2 Full 598070 11-JUL-07 /oracle/app/oradata/Arju/undotbs01.dbf
3 Full 598070 11-JUL-07 /oracle/app/oradata/Arju/sysaux01.dbf
4 Full 598070 11-JUL-07 /oracle/app/oradata/Arju/users01.dbf
5 Full 598070 11-JUL-07 /oradata1/test02.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
2 Full 6.80M DISK 00:00:01 11-JUL-07
BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20070711T105459
Piece Name: /oracle/app/flash_recovery_area/ARJU/autobackup/2007_07_11/o1_mf_s_627648694_399vt445_.bkp
Control File Included: Ckp SCN: 598070 Ckp time: 11-JUL-07
SPFILE Included: Modification time: 11-JUL-07
RMAN> restore database from tag TAG20070711T105344;
Starting restore at 17-JUL-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=158 devtype=DISK
skipping datafile 1; already restored to file /oracle/app/oradata/Arju/system01.dbf
skipping datafile 2; already restored to file /oracle/app/oradata/Arju/undotbs01.dbf
skipping datafile 3; already restored to file /oracle/app/oradata/Arju/sysaux01.dbf
skipping datafile 4; already restored to file /oracle/app/oradata/Arju/users01.dbf
skipping datafile 5; already restored to file /oradata1/test02.dbf
restore not done; all files readonly, offline, or already restored
Finished restore at 17-JUL-07
RMAN> ^D
Recovery Manager complete.
SQL> select log_mode from v$database;
LOG_MODE
NOARCHIVELOGIn 10gR2, you can drop a datafile, however the following restrictions apply:
* The database must be open.
* If a datafile is not empty, it cannot be dropped.
* You cannot drop the first or only datafile in a tablespace.
(This means that DROP DATAFILE cannot be used with a bigfile tablespace.)
* You cannot drop datafiles in a read-only tablespace.
* You cannot drop datafiles in the SYSTEM tablespace.
* If a datafile in a locally managed tablespace is offline, it cannot be dropped.
Otherwise, there is no SQL command that you can issue to delete all the files associated with a tablespace and still keep the tablespace. -
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jan 19 20:21:21 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> SQL> Connected.
SQL> SQL> alter database open resetlogs
ERROR at line 1:
ORA-01190: control file or data file 1 is from before the last RESETLOGS
ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF'
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining optionsHi,
ORA-01190: control file or data file string is from before the last RESETLOGS
Cause: Attempting to use a data file when the log reset information in the file does not match the control file. Either the data file or the control file is a backup that was made before the most recent ALTER DATABASE OPEN RESETLOGS.
Action: Restore file from a more recent backup.
In fact, if I'm not wrong, when you tried to open the database with "resetlogs" clause, it seems that the information kept in this control file points to datafiles checkpoints information that are older than the most recent resetlogs currently recorded in this control file. Have you tryied issue a recover database using backup controlfile?
Cheers
Legatti -
Error in starting up the database . . . .
Dears,,
While startup DB, i faced the following error:
ORA-01190: control file or data file 1 is from before the last resetlogs
ORA-01110: data file 1: ' /oracle/..../system01.dbf '
How can solve this please ?Dears,,
I restored system01.dbf and make recovery as following:
RMAN>RUN{
sql ' alter database datafile 1 offline ';
restore datafile 1;
recover datafile 1;
sql ' alter database datafile 1 online ';
But while starting up db , i faced another problem with system02.dbf
So, i made full restore database from more recent backup as following:
RMAN> restore database;
After finishing restoring i made recover as following:
RMAN> recover database;
I faced the following errors:
RMAN-00571: =======================
RMAN-03002: failure of recover command at 01/14/2010 21:30:53
ORA-00283: recovery session canceled due to errors
RMAN-11003: failure during parse/execution of SQL statement:
alter database recover logfile '/backup/flash_recovery_area/EBS/archivelog/2010_01_13 /o1_mf_1_3_5nv9kzc3_.arc'
ORA-00283: recovery session canceled due to errors
ORA-12801: error signaled in parallel query server P000
ORA-00600: internal error code, arguments: [3020], [392], [2], [1], [4], [52128], [388], []
ORA-10567: Redo is inconsistent with data block (file# 392, block# 2)
ORA-10564: tablespace APPS_TS_TX_DATA
ORA-01110: data file 392: '/oracle/EBS/db/apps_st/data/a_txn_data01.dbf'
ORA-10560: block type 'KTFB B -
Problem in bringing the database up
Hi,
I am facing this problem while bringing the database up :-
ORA-01190: control file or data file 21 is from before the last RESETLOGS
ORA-01110: data file 21: '/fnb/dbdevices2/ora10g_scmb/scmbdata06.dbf'
What i did just before that was i brought two datafiles ONLINE one of them is :-
'/fnb/dbdevices2/ora10g_scmb/scmbdata06.dbf' as given in the error.
I have been able to mount the database and when i try to bring these datafiles offline it gives same error
and also i tried to drop the datafile and on doing that i get disconnected from Oracle.
Can anyone please help in this.
Regards,
kapilyou'll want to log an SR to go through this with support. It looks like you took the file OFFLINE a while ago, then did an open resetlogs whilst the file was offline, and then tried the operation you described. In the case of READ-ONLY datafiles where the file header details don't get updated and a similar issue arises then there is a supported procedure to restore the file to the database. In your case I'm not sure if there is a supported route for you to go down.
Niall Litchfield
http://www.orawin.info/ -
Hi
I am restoring a hot backup taken through RMAN using following commands:
configure controlfile autobackup on;
BACKUP DATABASE ;
BACKUP ARCHIVELOG ALL DELETE INPUT;
Now I am going to restore that using following commands:
restore spfile from autobackup;
restore controlfile from autobackup;
shutdown immediate;
startup mount;
restore database;
RECOVER DATABASE;
ALTER DATABASE OPEN RESETLOGS;
But it goes fine till restore database. At recover database I get following errors:
archived log for thread 1 with sequence 2461 is already on disk as file /u01/app/oracle/fast_recovery_area/XE/onlinelog/o1_mf_1_8fbs9bvt_.log
archived log for thread 1 with sequence 2462 is already on disk as file /u01/app/oracle/fast_recovery_area/XE/onlinelog/o1_mf_2_8fbs9chb_.log
unable to find archived log
archived log thread=1 sequence=545
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 09/11/2013 20:41:43
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 545 and starting SCN of 25891726
I have checked the backup folder and there are only empty date wise folders under archivedlog folders.
If I write RMAN> ALTER DATABASE OPEN RESETLOGS; I get:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 09/11/2013 20:43:01
ORA-01190: control file or data file 1 is from before the last RESETLOGS
ORA-01110: data file 1: '/u01/app/oracle/oradata/XE/system.dbf'
If I write RMAN> recover database until sequence 545; I get
Starting recover at 11-SEP-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=695 device type=DISK
starting media recovery
unable to find archived log
archived log thread=1 sequence=545
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 09/11/2013 21:09:34
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 545 and starting SCN of 25891726
I don't mind if some data is lost. Will be really thankful if someone can help me get my database open;
HabibThey way you are trying to recover will try to recover up to the last know SCN. Try to do a point in time recover up to a few minutes before the database was shutdown or crashed.
Try something like this
run{
set until time "to_date('2013-09-11:00:00:00', 'yyyy-mm-dd:hh24:mi:ss')";
restore spfile from autobackup;
restore controlfile from autobackup;
shutdown immediate;
startup mount;
restore database;
RECOVER DATABASE;
ALTER DATABASE OPEN RESETLOGS; -
I go the error message when I open databse.
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01190: controlfile or data file 1 is from before the last RESETLOGS
ORA-01110: data file 1: '/u01/oracle/uatdata/system01.dbf'
Then I issue the following command:
SQL> recover datafile 1;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
what went wrong?
FANHere are the following information:
RMAN> list backup of controlfile
2> ;
using target database controlfile instead of recovery catalog
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
402 Full 6M DISK 00:00:00 08-OCT-08
BP Key: 402 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081008-00
Controlfile Included: Ckp SCN: 2023488262 Ckp time: 08-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
412 Full 6M DISK 00:00:01 09-OCT-08
BP Key: 412 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081009-00
Controlfile Included: Ckp SCN: 2024136961 Ckp time: 09-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
422 Full 6M DISK 00:00:00 11-OCT-08
BP Key: 422 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081011-00
Controlfile Included: Ckp SCN: 2025471910 Ckp time: 11-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
425 Full 6M DISK 00:00:01 11-OCT-08
BP Key: 425 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081011-01
Controlfile Included: Ckp SCN: 2025471911 Ckp time: 11-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
435 Full 6M DISK 00:00:00 12-OCT-08
BP Key: 435 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081012-00
Controlfile Included: Ckp SCN: 2026183392 Ckp time: 12-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
436 Full 6M DISK 00:00:00 12-OCT-08
BP Key: 436 Status: AVAILABLE Tag: TAG20081012T111913
Piece Name: /u02/db/backup/RMAN/backup_UAT_667912753_460_1_ecjsv2hh_1_1.bck
Controlfile Included: Ckp SCN: 2026183392 Ckp time: 12-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
438 Full 6M DISK 00:00:00 12-OCT-08
BP Key: 438 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081012-01
Controlfile Included: Ckp SCN: 2026183393 Ckp time: 12-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
448 Full 6M DISK 00:00:00 12-OCT-08
BP Key: 448 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081012-02
Controlfile Included: Ckp SCN: 2026451642 Ckp time: 12-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
449 Full 6M DISK 00:00:00 12-OCT-08
BP Key: 449 Status: AVAILABLE Tag: TAG20081012T202618
Piece Name: /u02/db/backup/RMAN/backup_UAT_667945578_473_1_epjt02ja_1_1.bck
Controlfile Included: Ckp SCN: 2026451642 Ckp time: 12-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
451 Full 6M DISK 00:00:01 12-OCT-08
BP Key: 451 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081012-03
Controlfile Included: Ckp SCN: 2026451643 Ckp time: 12-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
461 Full 6M DISK 00:00:04 13-OCT-08
BP Key: 461 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081013-00
Controlfile Included: Ckp SCN: 2026889745 Ckp time: 13-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
464 Full 6M DISK 00:00:00 13-OCT-08
BP Key: 464 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081013-01
Controlfile Included: Ckp SCN: 2026889749 Ckp time: 13-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
474 Full 6M DISK 00:00:00 14-OCT-08
BP Key: 474 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081014-00
Controlfile Included: Ckp SCN: 2027589079 Ckp time: 14-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
477 Full 6M DISK 00:00:01 14-OCT-08
BP Key: 477 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081014-01
Controlfile Included: Ckp SCN: 2027589080 Ckp time: 14-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
487 Full 6M DISK 00:00:01 15-OCT-08
BP Key: 487 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081015-00
Controlfile Included: Ckp SCN: 2028248959 Ckp time: 15-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
488 Full 6M DISK 00:00:00 15-OCT-08
BP Key: 488 Status: AVAILABLE Tag: TAG20081015T111406
Piece Name: /u02/db/backup/RMAN/backup_UAT_668171647_512_1_g0jt6vbv_1_1.bck
Controlfile Included: Ckp SCN: 2028248959 Ckp time: 15-OCT-08
BS Key Type LV Size Device Type Elapsed Time Completion Time
490 Full 6M DISK 00:00:00 15-OCT-08
BP Key: 490 Status: AVAILABLE Tag:
Piece Name: /u02/oracle/uat/uatdb/9.2.0/dbs/c-1357907388-20081015-01
Controlfile Included: Ckp SCN: 2028248960 Ckp time: 15-OCT-08
FAN -
Restore datafile problem (RMAN)
I delete the datafile branch.
Than restore it form the yesterdays backup
RMAN>restore tablespace branch.
successfully restored branch.dbf.
RMAN> recover tablespace branch;
archive log thread 1 sequence 12 is already on disk as file C:\ESAS\ORACLE\APP\O
RACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2008_01_21\O1_MF_1_12_3S8KWFJM_.ARC
archive log thread 1 sequence 13 is already on disk as file C:\ESAS\ORACLE\APP\O
RACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2008_01_21\O1_MF_1_13_3S8KWZM1_.ARC
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/21/2008 10:20:57
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of log thread 1 seq 5 lowscn 28752248 found to restore
RMAN-06025: no backup of log thread 1 seq 4 lowscn 28749190 found to restore
RMAN-06025: no backup of log thread 1 seq 3 lowscn 28735538 found to restore
RMAN-06025: no backup of log thread 1 seq 2 lowscn 28732630 found to restore
RMAN-06025: no backup of log thread 1 seq 1 lowscn 28704663 found to restore
RMAN-06025: no backup of log thread 1 seq 4 lowscn 28704627 found to restore
RMAN-06025: no backup of log thread 1 seq 3 lowscn 28684595 found to restore
RMAN-06025: no backup of log thread 1 seq 2 lowscn 28664563 found to restore
RMAN-06025: no backup of log thread 1 seq 1 lowscn 28642042 found to restore
RMAN-06025: no backup of log thread 1 seq 2225 lowscn 28640983 found to restore
RMAN-06025: no backup of log thread 1 seq 2224 lowscn 28640978 found to restore
RMAN-06025: no backup of log thread 1 seq 2223 lowscn 28633884 found to restore
SQL> alter tablespace branch online;
alter tablespace branch online
ERROR at line 1:
ORA-01190: control file or data file 4 is from before the last RESETLOGS
ORA-01110: data file 4: 'C:\ESAS\ORACLE\ORADATA\XE\BRANCH.DBF'
Also the size of the branch.dbf is 2,800GB normally, but when I restore it from the backupset it is nearly 500MB.If you did a RESETLOGS 3 days ago, that would have been between
the SCNs 26840983 and 28642042 ! based on these lines :
RMAN-06025: no backup of log thread 1 seq 1 lowscn 28642042 found to restore
RMAN-06025: no backup of log thread 1 seq 2225 lowscn 28640983 found to restore
However you do not expect to see a 500MB file. So I wonder if Oracle found
no backup of the datafile from recent days but found the most recent backup to be of so long ago (3+ days) that the datafile then was only 500MB.
That would mean that your recent daily backups have been failing or silently erroring out.
If RMAN cannot find a most recent (eg yesterday's) backup of a datafile, it will go back in time till it can find the "lastest" backup -- so the "lastest" backup of that datafile was a 500MB image many days ago ?
Check your backup destination directory -- your FlashbackRecoveryArea to see if backups are really going there. Check your backup logs.
Maybe you are looking for
-
Where can i find the upgrade from logic pro 7.1.1 to 7.2?
Hello there. Is the upgrade from logic pro 7.1.1 to 7.2 still available out there somewhere? I know I'm a bit behind the rest of the world but financially I'm taking the 'do the best with what you can' route! Never used logic before, moving up from g
-
Sharing folders in 10.8.3 to windows and macs PROBLEMS
I'm tryng to share folders from an 10.8.3 imac to users in my LAN (using bot mac and windows) I'm having this problem: 1) Mac users can access the share using afp:// but when they create new folders the permission are: drwxr-xr-x so no other can writ
-
Payment Terms not copied from Vendor Master to PO
Hello, PO was created for a Vendor and Vendor master has the correct payment terms but they did not get copied to the PO. Thanks Megha
-
Copy DTOs to aggregate (as defined by Eric Evans)
Hello, I have the following situation: Hand is an aggregate which consists of several fingers. Each finger can only belong to one hand. So hand is the aggregate root. One could write: package org.hand; class Hand { private long id; //generated by h
-
Extracting data from XML using extractValue
Given the following XML stored as xmlType in the database(table name :opfdata) , i woiuld like to query it using extractValue,existsNode to retrieve the title of the book (dc:Title). i wrote the following query select e.existsNode('/package/metadata/