Controlfile copy reported as datafile copy?
More 8.1.7, this time AIX.
We've got a controlfilecopy...
RMAN> catalog controlfilecopy '/usr/local/sebora/arch/efrt51/.ctl';
RMAN-03022: compiling command: catalog
RMAN-03023: executing command: catalog
RMAN-08052: cataloged controlfile copy
RMAN-08516: controlfile copy filename=/usr/local/sebora/arch/efrt51/.ctl recid=28 stamp=425168669
RMAN-03023: executing command: partial resync
RMAN-08003: starting partial resync of recovery catalog
RMAN-08005: partial resync complete
...which is reported as a datafilecopy by 'report obsolete'...
RMAN> report obsolete ;
RMAN-03022: compiling command: report
Report of obsolete backups and copies
Type Key Completion Time Filename/Handle
Datafile Copy 7343 23-MAR-01 /usr/local/sebora/arch/efrt51/.ctl
Datafile Copy 7345 23-MAR-01 /usr/local/sebora/arch/efrt51/.ctl
Confusing!
Regards,
per
Per,
You are right. I have filled bug 1710346 for this issue.
Thanks.
Similar Messages
-
Standby controlfile SCN ahead of datafile SCN
Hello,
Is there any quick fix to the scenario where the standby side controlfile SCN has gone ahead of the datafile SCN. All the archives are getting shipped to the standby side, but any attempt to start the MRP fails with -
Recovery interrupted!
Standby recovery stopped due to failure in applying recovery marker (opcode 17.4).
Datafiles are recovered to a consistent state at change 12679713219897 but controlfile is ahead at change 12679713219906.
DB (stand-alone): 11.2.0.2
Platform: Sun SPARC
Thanks
aBByIs there any quick fix to the scenario where the standby side controlfile SCN has gone ahead of the datafile SCN. All the archives are getting shipped to the standby side, but any attempt to start the MRP fails with -
Recovery interrupted!
Standby recovery stopped due to failure in applying recovery marker (opcode 17.4).
Datafiles are recovered to a consistent state at change 12679713219897 but controlfile is ahead at change 12679713219906.
Are you trying to perform Manual recovery from SQL? like recover standby database?
Even if controlfile is new and datafiles are older, still you should able to perform recovery , But this will be a valid database to open when SCN's are in SYNC.
SO perform recovery automated and then check synchronization.
SQL> alter database recover managed standby database disconnect from session;
Refer alert log file until it waits as " Media recovery waiting for thread# <no> sequence# <>"
Then, check SYNC as follows
Primary:-
SQL> select thread#, max(sequence#) from v$archived_log group by thread#;
Standby:-
SQL> select thread#, max(sequence#) from v$archived_log group by thread#;
SQL> select thread#, max(sequence#) from v$archived_log where applied='YES' group by thread#;
Also you can try option of recreating standby controlfile as below from primary
SQL> alter database create standby controlfile as 'loation';
& restore it in standby database. -
Re-create controlfile when lost all datafile
dear all,
assume i have a database, i backuped full database use Rman, after that i deleted all of datafile,redolog file,controfile of database and i also deleted the backup controlfile by Rman, backup snapshot cotrolfile,
so how to create the controlfile in the case?
thank,TyL wrote:
hi CKPT
"If you have RMAN backup, then no need to create the controlfile, Restore of controlfile is fine."
thank your response,
but in the case, the backup controlfile is lost (error hardware)
thank,If Database is down, if no backup of controlfile is found from OS level,
Then you have to restore controlfile from RMAN backup, There is no other option.
@Fiedi Z
We can take the trace of controlfile but OP is expecting how to take the trace file when datafiles/controlfile deleted.
Thanks. -
DELETE COPY EXCLUDING ARCHIVELOG
Hello Experts ,
I am in a need of your help for the below my query:
ORACLE 10G
DB_RECOVERY_FILE_DEST = C:\oraclexe\oradata\TESTDB\flash_recovery_area
LOG_ARCHIVE_DEST_1='LOCATION=C:\oraclexe\oradata\TESTDB\arch\arch1'
LOG_ARCHIVE_DEST_2='LOCATION=C:\oraclexe\oradata\TESTDB\arch\arch2'
I have taken set of backup copy and i now want to delete them.. so i wish to use the systax "DELETE COPY". But it also includes my archive logs in the LOG_ARCHIVE_DEST_n location. How can i use the 'DELETE COPY .... ' command to exclude the archive logs ...
================
OUTPUT:
RMAN> DELETE COPY;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=36 devtype=DISK
List of Datafile Copies
Key File S Completion Time Ckp SCN Ckp Time Name
41 1 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSTEM_8MPMQD0H_.DBF
35 1 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSTEM_8MPKPC6T_.DBF
29 1 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSTEM_8MPKM3YH_.DBF
43 2 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_UNDO_8MPMR2GZ_.DBF
37 2 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_UNDO_8MPKQ9KR_.DBF
31 2 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_UNDO_8MPKMT8M_.DBF
42 3 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSAUX_8MPMQV7W_.DBF
36 3 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSAUX_8MPKPTCT_.DBF
30 3 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_SYSAUX_8MPKMM3M_.DBF
44 4 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_HRTBS_8MPMR9LK_.DBF
38 4 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_HRTBS_8MPKQJQP_.DBF
32 4 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_HRTBS_8MPKN1L3_.DBF
45 5 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_TEST_8MPMRDRO_.DBF
39 5 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_TEST_8MPKQMX0_.DBF
33 5 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\DATAFILE\O1_MF_TEST_8MPKN4PH_.DBF
List of Control File Copies
Key S Completion Time Ckp SCN Ckp Time Name
46 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_MYCOPY_8MPMRHXC_.CTL
40 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_TAG20130309T195722_8MPKQQ1N_
TL
34 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_MYCOPY_8MPKN7VH_.CTL
List of Archived Log Copies
Key Thrd Seq S Low Time Name
191 1 40 A 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\ARCH\ARCH2\ARC00040_0809123036.001
190 1 40 A 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\ARCH\ARCH1\ARC00040_0809123036.001
Do you really want to delete the above objects (enter YES or NO)? no
RMAN>
=======================
Thanks and Regards,
Christo
Edited by: Christpj on Mar 9, 2013 8:19 AMHello Mseberg,
Great !
Thanks for the reply .Now i got some idea. But still my controlfile copy remains in the flash recovery area..So i have to go again to delete this controlfile copies...
So any other options available to delete all backup copies (datafiles,controlfiles,backup copy of archivedlog files if any ) by a single command except that archivelog file in the LOG_ARCHIVE_DEST_n
And also i am confused that why my archive log file also listed here (LIST COPY) eventhough i didnt copied it using RMAN and i didnt placed it in flash_recovery area..
===========================
Output:
After the delete datafilecopy
RMAN> list copy;
List of Control File Copies
Key S Completion Time Ckp SCN Ckp Time Name
46 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_MYCOPY_8MPMRHXC_.CTL
40 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_TAG20130309T195722_8MPKQQ1N_.C
TL
34 A 09-MAR-13 620684 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\FLASH_RECOVERY_AREA\TESTDB\CONTROLFILE\O1_MF_MYCOPY_8MPKN7VH_.CTL
List of Archived Log Copies
Key Thrd Seq S Low Time Name
191 1 40 A 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\ARCH\ARCH2\ARC00040_0809123036.001
190 1 40 A 09-MAR-13 C:\ORACLEXE\ORADATA\TESTDB\ARCH\ARCH1\ARC00040_0809123036.001
RMAN>
======================
-Christo -
Creating a control file copy with ASM
Configuration is Oracle 10.2, RAC, and ASM (Automatic Storage Management). I would like to create a second copy of the control file.
If this wasn't ASM, I could just bring down the database, copy the control file using an operating system command, modify the pfile to reference both the original and new copy, and then restart the database.
Since this is ASM, I cannot use an operating system command to copy the control file, and RMAN "BACKUP" (which is the only way I know to make a copy of the control file) will only work if the database is up. When I "restore" the control file using RMAN and change the pfile to reference both control files I get a message like the following when attempting to start the database:
ORA-00214: control file '+ASMGROUP1/db1/controlfile/current.271.566646845'
version 2241 inconsistent with file
'+ASMGROUP1/db1/controlfile/current.268.566661765' version 2236
Soooooo, how do I make and implement a second copy of a control file using ASM.
ThanksHi.
This is not testet so presede with caution as it is meant as a discussion ;-)
As I see it there is no logical way to extend the instance by adding a controlfile.
The following procedure might work (has not been tested)
I think you have to make a controlfilebackup with the database closed in normal mode using RMAN.
Further you might be able to edit the pfile with create pfile from spfile and further create spfile from pfile. Extending the controlfile parameter to represent number and names of controlfile needed.
With this done, the database is closed normal with a controlfile copy presented somewhere on the filesystem.
startup mount;
restore controlfile from '<backup controlfile location>'
alter database mount;
alter database open;
Any thoughts about this procedure guys?
Rgds
Kjell Ove -
Hi,
Can I schedule a report in CUIC and I want that report to dumped in a specific location. Is this possible ?
I know the other options are to email the scheduled reports or to make it available in the dashboard. But, I do not need them. I need the scheduled reports to be dumped ina specific location.We actually use a vbs script to move the "scheduled" report to a network share location. Set the .vbs to run using Task Schedule. Here is one of the scripts we use:
dim dtmToday, dtmFileDate
dtmToday = Date
On Error Resume Next
Set FSO = CreateObject("Scripting.FileSystemObject")
Set LogFile = FSO.OpenTextFile("C:\DonnaLogs.txt",8,TRUE)
Set objFOlder = FSO.GetFOlder("C:\Documents and Settings\ciscouccxreport\Desktop\Donna Reports")
Set datafiles = objFOlder.Files
NumberofFiles = DataFiles.count
If NumberofFiles < 8 Then
Dim objMessage
Dim strTextBody
Dim strEmailTo
Dim intInstance
Dim strEnableCount
Dim DiffTime
'Initialize the objects
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Donnas Reports failed"
objMessage.From = "[email protected]"
objMessage.To = "[email protected];[email protected];[email protected]"
objMessage.TextBody = "Donnas Reports failed today" & VBCRLF & VBCRLF
'Set email TextBody
'objMessage.TextBody = strTextBody
'Set email TextBody
'objMessage.TextBody = strTextBody
'==This section provides the configuration information for the remote SMTP server.
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail65002.edps.dom"
'Type of authentication, NONE, Basic (Base64 encoded), NTLM
'objMessage.Configuration.Fields.Item _
'("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objMessage.Configuration.Fields.Update
'==End remote SMTP server configuration section==
'Send the email
objMessage.Send
'Destroy the object
Set objMessage = Nothing
End if
LogFile.WriteBlankLines(1)
LogFile.WriteLine("[CHECKING DONNA'S REPORT STATUS " & NOW & "]" )
For Each objFile in objFolder.Files
dtmFileDate = objFile.DateLastModified
intDaysDifference = DateDiff("d", dtmFileDate, dtmToday)
If intDaysDifference < 2 Then
Err.clear
FSO.CopyFile objFile.Path, "\\deptpublic\deptpublic\HR\Phone Reports\Monthly Reports\"
If Err = 0 then
LogFile.WriteLine(" COPIED " & objFile.Path & " to \\deptpublic\deptpublic\HR\Phone Reports\Monthly Reports\")
Else
LogFile.WriteLine(" **ERROR " & Err.Number & " copying " & objFile.Path & " to \\deptpublic\deptpublic\HR\Phone Reports\Monthly Reports\")
LogFile.WriteLine(" ******* " & Err.Description)
Err.clear
End If
Else
If intDaysDifference > 2 Then
Err.clear
FilePath = objFile.Path
If objFile.DELETE = 0 Then
LogFile.WriteLine(" DELETED " & FilePath)
Else
LogFile.WriteLine(" **ERROR " & Err.Number & " DELETING " & objFile.Path)
LogFile.WriteLine(" ******* " & Err.Description)
Err.clear
End If
End If
End If
Next
LogFile.WriteLine("[COMPLETING DONNA'S UPDATE " & NOW & "]" )
LogFile.Close -
How to recover datafile.when control file auto backup is off
hi friend
i took hot backup of my database using following command
rman>backup database;
in my case controlfile auto backup is off.
and i have lost my all controlfiles as well as datafiles except spfile.
i have recovered control file using dbms_backup_restore package.
know i am able to mount database using following command
rman> startup mount;
when i wrote following command
rman> restore database;
i got following error
RMAN-06023: no backup or copy of datafile name found to restore
enven i have backup of datbase.
can anybody tell me how to recover datafiles in this case.
thanking you
sohailhi,
I think you might have a problem here as the error from RMAN is described in the following metalink note
Doc ID: Note:100565.1
You should change you backup script to be something like
rman {
backup database include current controlfile;
do you have any earlier backups of your database?
regards
Alan -
here is the scenario
i wanted to create same DB as other place
1.used ORADIM created instance
2.start pfile ="";
3.start spfile from pfile; & Pfile from spfile;
4.startup mount;
5.oracle instance started ; error in identifying controlfile , check alertlog
In above case i dont have controlfile copy (accidentally deleted)
how can i create controlfile new?
10.2.0
win 7 ultimate983292 wrote:
i want to ADD that in my Pfile (init.ora which i started database) i didnt define of controlfile ,because i didnt have itjust make a new one by doing as below
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 '/home/oracle/app/oracle/oradata/orcl/redo01.log' SIZE 50M BLOCKSIZE 512,
GROUP 2 '/home/oracle/app/oracle/oradata/orcl/redo02.log' SIZE 50M BLOCKSIZE 512,
GROUP 3 '/home/oracle/app/oracle/oradata/orcl/redo03.log' SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
'/home/oracle/app/oracle/oradata/orcl/system01.dbf',
'/home/oracle/app/oracle/oradata/orcl/sysaux01.dbf',
'/home/oracle/app/oracle/oradata/orcl/undotbs01.dbf',
'/home/oracle/app/oracle/oradata/orcl/users01.dbf',
'/home/oracle/app/oracle/oradata/orcl/example01.dbf',
'/home/oracle/app/oracle/oradata/orcl/APEX_1930613455248703.dbf'
CHARACTER SET AL32UTF8
-- Commands to re-create incarnation table
-- Below log names MUST be changed to existing filenames on
-- disk. Any one log file from each branch can be used to
-- re-create incarnation records.
-- ALTER DATABASE REGISTER LOGFILE '/home/oracle/app/oracle/flash_recovery_area/ORCL/archivelog/2013_03_01/o1_mf_1_1_%u_.arc';
-- ALTER DATABASE REGISTER LOGFILE '/home/oracle/app/oracle/flash_recovery_area/ORCL/archivelog/2013_03_01/o1_mf_1_1_%u_.arc';
-- Recovery is required if any of the datafiles are restored backups,
-- or if the last shutdown was not normal or immediate.
RECOVER DATABASE
-- Database can now be opened normally.
ALTER DATABASE OPEN;
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE '/home/oracle/app/oracle/oradata/orcl/temp01.dbf'
SIZE 165675008 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
-- End of tempfile additions. -
Error during recover datafile - ORA-01422: exact fetch returns more than ..
Hi,
we have got actual a serious problem in our database. Some days ago we created a new datafile for a tablespace in the wrong directory:
ALTER TABLESPACE "ANZSIIDX" ADD DATAFILE '/oralunadata/anzora8/ANZSIIDX08.dbf' SIZE 500M
We recognized our mistake and generated the datafile with the same name in teh right directory:
ALTER TABLESPACE "ANZSIIDX" ADD DATAFILE '/oralunaindex/anzora8/ANZSIIDX08.dbf' SIZE 500M
We set the "wrong" datafile offline in order to rename and replace this in file in the right directory:
alter database datafile '/oralunadata/anzora8/ANZSIIDX08.dbf' offline;
ALTER TABLESPACE 'ANZSIIDX'
RENAME DATAFILE '/oralunadata/anzora8/ANZSIIDX08.dbf',
TO '/oralunaindex/anzora8/ANZSIIDX09.dbf';
After this we wanted to bring the datafile online again with a recovery but
this fails with teh strange error-message:
SQL> recover datafile 109;
ORA-00604: error occurred at recursive SQL level 1
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at line 20
ORA-00279: change 10322956311023 generated at 04/10/2013 18:51:23 needed for
thread 1
ORA-00289: suggestion : /oralunaarchiv/anzora8/anzora8_1_315326_636567403.arc
ORA-00280: change 10322956311023 for thread 1 is in sequence #315326
A similar thing happens with our RMAN backup from last weekend, which failed:
channel c4: backup set complete, elapsed time: 00:32:33
input datafile fno=00109 name=/oralunadata/anzora8/ANZSIIDX08.dbf
input datafile fno=00103 name=/oralunaindex/anzora8/ITOPROTOKOLLEIDX01.dbf
input datafile fno=00097 name=/oralunadata/anzora8/ITOPROTOKOLLE03.dbf
input datafile fno=00096 name=/oralunadata/anzora8/ITOPROTOKOLLE02.dbf
channel c4: specifying datafile(s) in backupset
channel c4: starting compressed incremental level 0 datafile backupset
continuing other job steps, job failed will not be re-run
ORA-00600: internal error code, arguments: [krbbfmx_notfound], [109], [12801], [], [], [], [], []
ORA-01422: exact fetch returns more than requested number of rows
ORA-00604: error occurred at recursive SQL level 1
Has anybody an idea, how can we bring back the datafile online in order to run succesfull an RMAN backup?
Actually we see just the workaraound to move the objects from the affected tablespace to new tablespace
and the drop the empty tablespace what would be quite time consuming and not really practicable for us.
kind regards,
MarcoHi,
actual we see this in v$datafile:
/oralunaindex/anzora8/ANZSIIDX01.dbf 15 ANZSIIDX 10737418240 1310720 AVAILABLE 15 NO 0 0 0 10737352704 1310712 ONLINE
/oralunaindex/anzora8/ANZSIIDX02.dbf 46 ANZSIIDX 10737418240 1310720 AVAILABLE 46 NO 0 0 0 10737352704 1310712 ONLINE
/oralunaindex/anzora8/ANZSIIDX03.dbf 58 ANZSIIDX 10737418240 1310720 AVAILABLE 58 NO 0 0 0 10737352704 1310712 ONLINE
/oralunaindex/anzora8/ANZSIIDX04.dbf 65 ANZSIIDX 10737418240 1310720 AVAILABLE 65 NO 0 0 0 10737352704 1310712 ONLINE
/oralunaindex/anzora8/ANZSIIDX05.dbf 78 ANZSIIDX 10737418240 1310720 AVAILABLE 78 NO 0 0 0 10737352704 1310712 ONLINE
/oralunaindex/anzora8/ANZSIIDX06.dbf 85 ANZSIIDX 10737418240 1310720 AVAILABLE 85 NO 0 0 0 10737352704 1310712 ONLINE
/oralunaindex/anzora8/ANZSIIDX07.dbf 88 ANZSIIDX 10737418240 1310720 AVAILABLE 88 NO 0 0 0 10737352704 1310712 ONLINE
/oralunaindex/anzora8/ANZSIIDX09.dbf 109 ANZSIIDX AVAILABLE 109 RECOVER
/oralunaindex/anzora8/ANZSIIDX08.dbf 110 ANZSIIDX 10737418240 1310720 AVAILABLE 110 NO 0 0 0 10737352704 1310712 ONLINE
We dont use RMAN-Catalog for backup the information is only stored in the controlfile.
The recovery datafile command with full path including for the datafile failed with the same error message:
SQL> connect / as sysdba
Connected.
SQL> recover datafile '/oralunaindex/anzora8/ANZSIIDX09.dbf';
ORA-00604: error occurred at recursive SQL level 1
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at line 20
ORA-00279: change 10322956311023 generated at 04/10/2013 18:51:23 needed for
thread 1
ORA-00289: suggestion : /oralunaarchiv/anzora8/anzora8_1_315326_636567403.arc
ORA-00280: change 10322956311023 for thread 1 is in sequence #315326
I guess it is a bug of oracle which will sometimes occur when you give two datafiles the same name in different directories that this poduces errors as above in the RMAN inerface(packages)!?
Maybe we could force to set he tablespace offline, rename the new added datafiles and ry to bring the tablespace online but nobody knows if it works really and we get the tablespace online again?
Therefore at the moment maybe it's the best way to move the objects away from this tablespace and than drop them, isn't it?
regards,
Marco -
How to diagnose and recover corrupted datafile?
DBMS: Oracle v.9.2.0.1.0
OS: MS Server 2003 R2 SP2 x86
Problem: Database begin to stop every few minutes. I start to check and found that one and the largest of two datafiles is probably corrupted. Now I have no idea how to repair that datafile.
Firstly, I look into the alert.log and see that^
Mon Jul 29 11:02:03 2013
SMON: enabling tx recovery
Mon Jul 29 11:02:03 2013
Database Characterset is CL8MSWIN1251
replication_dependency_tracking turned off (no async multimaster replication found)
Completed: alter database open
Mon Jul 29 11:02:42 2013
KCF: write/open error block=0x3c009f online=1
file=4 F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
error=27069 txt: 'OSD-04026: Invalid parameter passed. (OS 3932319)'
Mon Jul 29 11:02:42 2013
Errors in file c:\oracle\admin\orcl\bdump\orcl_dbw0_3604.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
ORA-01114: IO error writing block to file 4 (block # 3932319)
ORA-01110: data file 4: 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA'
ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
OSD-04026: Invalid parameter passed. (OS 3932319)
DBW0: terminating instance due to error 1242
Instance terminated by DBW0, pid = 3604
Dump file c:\oracle\admin\orcl\bdump\alert_orcl.log
So, I turned archivelog on and open database but it continue to stop when somebody calls to some DB objects.
Then, I check v$headers:
SQL> select file#, status, recover, fuzzy, tablespace_name, to_char(CHECKPOINT_CHANGE#), name from v$datafile_header;
FILE# STATUS REC FUZ TABLESPACE_NAME TO_CHAR(CHECKPOINT_CHANGE#) NAME
1 ONLINE NO YES SYSTEM 9679059694215 F:\ORACLE\ORADATA\ORCL\SYSTEM.ORA
2 ONLINE NO YES UNDO 9679059694215 F:\ORACLE\ORADATA\ORCL\UNDO.ORA
3 ONLINE NO YES USERS 9679059694215 F:\ORACLE\ORADATA\ORCL\USERS.ORA
4 OFFLINE YES YES USERS 9679059697551 F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
For some reason, USERS in USERS_1.ORA is offline and marked as requiring recovery.
I tried to recover datafile, but get some errors:
SQL> recover datafile 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA';
ORA-00283: recovery session canceled due to errors
ORA-01115: IO error reading block from file 4 (block # 3932319)
ORA-01110: data file 4: 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA'
ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
OSD-04026: Invalid parameter passed. (OS 3932319)
That have looking creepy for me.
I tries to verify datafile:
dbv file=F:\oracle\oradata\orcl\users_1.ora blocksize=16384 logfile=F:\oracle\oradata\orcl\dbvlog.txt
The result of verification was unexpectedly clean:
DBVERIFY: Release 9.2.0.1.0 - Production on Tue Jul 30 05:03:26 2013
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
DBVERIFY - Verification starting : FILE = F:\oracle\oradata\orcl\users_1.ora
DBVERIFY - Verification complete
Total Pages Examined : 3932320
Total Pages Processed (Data) : 94051
Total Pages Failing (Data) : 0
Total Pages Processed (Index): 19378
Total Pages Failing (Index): 0
Total Pages Processed (Other): 3753059
Total Pages Processed (Seg) : 0
Total Pages Failing (Seg) : 0
Total Pages Empty : 65832
Total Pages Marked Corrupt : 0
Total Pages Influx : 0
Now I have that offlined tablespace in the probably not corrupted datafile and no idea how to get DB into the normal state.
Upd: I did database validation by RMAN:
RMAN> BACKUP VALIDATE DATABASE;
Starting backup at 30-JUL-13
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=11 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current controlfile in backupset
input datafile fno=00004 name=F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
input datafile fno=00002 name=F:\ORACLE\ORADATA\ORCL\UNDO.ORA
input datafile fno=00003 name=F:\ORACLE\ORADATA\ORCL\USERS.ORA
input datafile fno=00001 name=F:\ORACLE\ORADATA\ORCL\SYSTEM.ORA
channel ORA_DISK_1: backup set complete, elapsed time: 00:33:06
Finished backup at 30-JUL-13
That would been check my DB and put information of corrupted blocks to a V$DATABASE_BLOCK_CORRUPTION, but no! There's nothing:
SQL> select * from V$DATABASE_BLOCK_CORRUPTION;
no rows selected
Nevertheless, database doesn't open, until I switch bad datafile to offline^
SQL> alter database datafile 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA' online;
Database altered.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01113: file 4 needs media recovery
ORA-01110: data file 4: 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA'
Message was edited by: Llywelyn.yvDoes it diferents from below?
RMAN> BACKUP VALIDATE DATABASE;
Starting backup at 30-JUL-13
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=11 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current controlfile in backupset
input datafile fno=00004 name=F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
input datafile fno=00002 name=F:\ORACLE\ORADATA\ORCL\UNDO.ORA
input datafile fno=00003 name=F:\ORACLE\ORADATA\ORCL\USERS.ORA
input datafile fno=00001 name=F:\ORACLE\ORADATA\ORCL\SYSTEM.ORA
channel ORA_DISK_1: backup set complete, elapsed time: 00:33:06
Finished backup at 30-JUL-13 -
CREATE CONTROLFILE REUSE DATABASE OR SET DATABASE
Hi Guys,
I'm doing a db migration from one mount point to another mount point in the same server.
The location of controlfile, log files and datafiles will be change.
I have updated the new controfile location in my pfile and startup nomount.
When creating the controfile to reflect the new location of redo logs / datafiles, should i use "reuse" or "set" syntax? Can explain what's the diff between the 2? Have read up the document but not able to understand.
thanksHere not only controlfile but also data & redo log files That's irrelevant. The REUSE in the CREATE CONTROLFILE statement applies only to the controlfile.
(REUSE for Datafiles is in ALTER ... CREATE ... DATAFILE .... etc).
REUSE in CREATE CONTROLFILE is to specify that existing controlfiles are to be overwritten.
SET in CREATE CONTROLFILE is to specify that the DB_NAME is being changed from whatever is the existing name in datafile headers.
They are two different clauses for two different purposes. It is not an "either/or" decision.
I can REUSE with SET.
I can REUSE without SET.
I can exclude REUSE but use SET.
I can exclue REUSE and exclude SET.
Hemant K Chitale -
Alter database create datafile as
Hi
T1-)shutdown immediate;
T2-)Take full backup
T3-)startup;
T4-)move the objects in tablespace test1 to some other tablespace
T5-)drop tablespace test1;
T6-)create tablespace test1
datafile 'C:\oraclexe\oradata\XE\test1.dbf' reuse;
T7-)alter system switch logfile;
In some other server;
startup nomount;
restore the backupset which was taken at T2.
restore controlfile at T7.
startup mount;
alter database create datafile 'C:\oraclexe\oradata\XE\test1.dbf' as 'C:\oraclexe\oradata\XE\test1.dbf';
ALTER DATABASE RECOVER automatic database until cancel using backup controlfile;
Recovery performed succefully.
What I wanna ask is;
Since First I issue:
"alter database create datafile as ...."
The contents of this datafile should be deleted with this statement.
Why oracle doesnt give error in recovery, during appliying the statement at T4 ?
I have already deleted the contents of the datafile, how come oracle move the objects?
I hope I am clearHi,
although it is beyound my imagination what kind of real world scenario you are trying to simulate with your test, I can tell you why no error gets returned:
You create a new tablespace t1 after you dropped the old one. That gets stored in the current controlfile. The previous backup of the datafile of the old tablespace that incidentally has the same name is now useless for the new tablespace.
You then restore that controlfile and create the datafile manually as it looked after you created the new tablespace (empty) and then recover that. RMAN does that (without complaining even about the uselessness of your doing). If you look into that tablespace, you will see that it is empty as it was after you created it - unless you have put any objects into it after the second creation of that tablespace t1.
Kind regards
Uwe
http://uhesse.wordpress.com -
Why backup controlfile to trace doesn't produce the trace file in udump?
Hi there,
I recently redirected some of the data files on different drives. I started nomount with pfile and created new controlfile with the new datafile locations. I was able to open db and saw the new location of the db files. But when I trace the controlfile, I didn't see the trace file on the udump. Could anybody explain why?also, when I did the show parameter I got the following results:
SQL> show parameter spfile
NAME TYPE VALUE
spfile string
SQL> show parameter pfile
NAME TYPE VALUE
spfile string
I did startup the db with pfile and open it with resetlogs. I created spfile from pfile. Why I'm not seeing the location of the pfile or spfile? Could you please help me understand this? -
Possible to show datafiles that require level 0 backup?
We have some large databases with many datafiles. Is there a command to list / report which datafiles dont have a level 0 backup?
From what I am seeing report need backup - ignores reporting datafiles that may just have a level 1 backup - even if there is no level 0 to base it from.
Is this correct?
Finding this out the hard way when creating a duplicate and finding out that the duplicate fails as it cant find the level 0 for some datafiles
(Linux 11gr1 100tb db Exadata)
Thanks for helping me make sense of this..
DarylI tried that .. it doesnt list any issues but I know there is..
RMAN> report need backup
2> ;
RMAN retention policy will be applied to the command
RMAN retention policy is set to recovery window of 89 days
Report of files that must be backed up to satisfy 89 days recovery window
File Days Name
Nothing..
but look at this.. there is no level 0 backup .. it fell off .. ie over 89 days old.
RMAN> list backup of datafile 71;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
93363024 Incr 1 793.18G SBT_TAPE 10:39:55 14-OCT-12
BP Key: 93363042 Status: AVAILABLE Compressed: NO Tag: TAG20121013T210225
Handle: bk_PCINF_69501_1_796597627 Media: JW0536
List of Datafiles in backup set 93363024
File LV Type Ckp SCN Ckp Time Name
71 1 Incr 984352498996 09-OCT-12
BS Key Type LV Size Device Type Elapsed Time Completion Time
93551429 Incr 1 10.60G SBT_TAPE 00:04:28 20-OCT-12
BP Key: 93551451 Status: AVAILABLE Compressed: NO Tag: TAG20121020T210951
Handle: bk_PCINF_72018_1_797202927 Media: JW5859
List of Datafiles in backup set 93551429
File LV Type Ckp SCN Ckp Time Name
71 1 Incr 984352498996 09-OCT-12
BS Key Type LV Size Device Type Elapsed Time Completion Time
93978586 Incr 1 10.60G SBT_TAPE 00:07:03 27-OCT-12
BP Key: 93978613 Status: AVAILABLE Compressed: NO Tag: TAG20121027T211433
Handle: bk_PCINF_74209_1_797807878 Media: JW4007
List of Datafiles in backup set 93978586
File LV Type Ckp SCN Ckp Time Name
71 1 Incr 984352498996 09-OCT-12
BS Key Type LV Size Device Type Elapsed Time Completion Time
94415892 Incr 1 10.60G SBT_TAPE 00:05:55 03-NOV-12
BP Key: 94415905 Status: AVAILABLE Compressed: NO Tag: TAG20121103T211332
Handle: bk_PCINF_76973_1_798412667 Media: JW5871
List of Datafiles in backup set 94415892
File LV Type Ckp SCN Ckp Time Name
71 1 Incr 984352498996 09-OCT-12
BS Key Type LV Size Device Type Elapsed Time Completion Time
94725007 Incr 1 10.60G SBT_TAPE 00:06:13 11-NOV-12
BP Key: 94725015 Status: AVAILABLE Compressed: NO Tag: TAG20121111T000027
Handle: bk_PCINF_80432_1_799027731 Media: JF0177
List of Datafiles in backup set 94725007
File LV Type Ckp SCN Ckp Time Name
71 1 Incr 984352498996 09-OCT-12
BS Key Type LV Size Device Type Elapsed Time Completion Time
95026253 Incr 1 973.96G SBT_TAPE 06:48:17 18-NOV-12
BP Key: 95026315 Status: AVAILABLE Compressed: NO Tag: TAG20121117T220628
Handle: bk_PCINF_83850_1_799626027 Media: JW4286
List of Datafiles in backup set 95026253
File LV Type Ckp SCN Ckp Time Name
71 1 Incr 984352498996 09-OCT-12
BS Key Type LV Size Device Type Elapsed Time Completion Time
95819737 Incr 1 448.65G SBT_TAPE 07:56:00 02-DEC-12
BP Key: 95819747 Status: AVAILABLE Compressed: NO Tag: TAG20121201T221733
Handle: bk_PCINF_92173_1_800922570 Media: JW3707
List of Datafiles in backup set 95819737
File LV Type Ckp SCN Ckp Time Name
71 1 Incr 1016584342670 01-DEC-12
RMAN> -
Urgant :dropping a datafile
I'm experiencing the following error:
SQL> startup force
ORACLE instance started.
Total System Global Area 118255568 bytes
Fixed Size 282576 bytes
Variable Size 83886080 bytes
Database Buffers 33554432 bytes
Redo Buffers 532480 bytes
Database mounted.
ORA-01122: database file 5 failed verification check
ORA-01110: data file 5: 'D:\ORACLE\ORADATA\ORACLE9I\EXAMPLE01.DBF'
ORA-01207: file is more recent than controlfile - old controlfile
SQL> alter database datafile 'D:\ORACLE\ORADATA\ORACLE9I\EXAMPLE01.DBF' offline;
alter database datafile 'D:\ORACLE\ORADATA\ORACLE9I\EXAMPLE01.DBF' offline
ERROR at line 1:
ORA-01145: offline immediate disallowed unless media recovery enabled
As far as Im concerned, I have to take this file offline, drop it, and then recreate but I can't do any of these.
Could you help me with this Im using oracl9i server release 2.Cause: The control file change sequence number in the datafile is greater than the number in the control file. This implies that the wrong control file is being used. Note that repeatedly causing this error can make it stop happening without correcting the real problem. Every attempt to open the database will advance the control file change sequence number until it is great enough.
Action: Use the current control file or do BACKUP CONTROLFILE RECOVERY to make the control file current. Be sure to follow all restrictions on doing a BACKUP CONTROLFILE RECOVERY.
selvan
Maybe you are looking for
-
3 questions on visual changes and positioning
Hello everyone, I hope I have the right section for my questions. (so many categories) I have three questions that I hope I can get answered. Question 1 ) I am writing an application that uses a JDesktopPane. I have a menu that each choice opens up a
-
How can I make the mouse follow as I point?
I am brand new to captivate and incredibly frustrated. I'm trying to record a web site walkthrough and have selected "Demostration." No matter what setting I change, the mouse only moves when I click, but I want to point to things as I narrate. Can a
-
I have an Intel iMac i7 that acts as fileserver for our office. It's running 10.6.8. I just upgraded my Intel Macbook Pro to Lion and connecting to the iMac has become a pain. I used to click a folder from the share that I had added to my favorites a
-
Change Master - CC03 txn - AEOI table - Fields AENNR, AETYP, AEDTZ
Hi Friends, We are working on iPPE module. (Integrated Product and Process Engineering). We are facing one issue to display the Valid from date for the change number in CC03 txn. This valid from date is displayed based on the value 001 for the field
-
I run XP. I cant run firefox it in safe mode either. What else do you need to know?