recover the database unitl cancel using the control file
I refreshed with db1 db2, copied all the newspapers dbfile and archive to the db2 server and setup/adjusted spfile, controlfile etc on the new db2 server and hasrecover the database unitl cancel using the control file.
ALTER database open resetlogs.
Now the customer want to refresh it after 2 days, I wonder of I need only archive newspapers or both? to do the same again?
Published by: DBA2008 on November 11, 2009 09:49
Yes, you can 'restore to cancel' several times.
Tags: Database
Similar Questions
-
restore / recover the control file
Hello
in 10g, I lost all the files of ctl and I want to restore/recovery of backups RMAN.
Oracle documentation:
After that I should publish any statement to RECOVER or change the editing of the database and alter database open would be enough?6.4.1.4 Restoring a Control File When Using a Recovery Catalog Restoring a lost control file from autobackup is easier when using a recovery catalog than when using only the control file to store the RMAN repository. The recovery catalog contains a complete record of your backups, including backups of the control file. Therefore, you do not have to specify your DBID or control file autobackup format. To restore the control file, connect RMAN to the target database and the recovery catalog, and bring the database to NOMOUNT state. Then issue the RESTORE CONTROLFILE command with no parameters, as in this example: % rman TARGET rman/rman CATALOG catdb/catdb RMAN> RESTORE CONTROLFILE;
Thank you.
Is there a complete senario anywhere?The restoration is correct.
Please see the following:
http://www.SC.EHU.es/siwebso/KZCC/Oracle_10g_Documentacion/server.101/B10734/rcmrecov.htm#1006247
-
ORA-19838: cannot use this control file to open the database
Dear all,
While making RMAN cloning, we are facing problem,
SQL > alter database open resetlogs;
ALTER database open resetlogs
*
ERROR on line 1:
ORA-19838: cannot use this control file to open the database
Concerning
Villi Kumar
Dear all,
While checking the database,
Control the name of the database file is PROD
In the instance, database name is TEST.
So we took the PROD and edited control file trace file based on the TEST environment.
Then run the script published in the TEST database trace file.
Now we can open the database by using below command
ALTER database open resetlogs;
Concerning
Villi Kumar
-
Hello, please help me on this... im using 10.2.0.4.0, DB created by ex-colleague
When the db connection has ora error 1103 and tried to create controlfile using track, but I could not
Here are the details:
Tests1 > bootable media.
ORACLE instance started.
Total System Global Area 734003200 bytes
Bytes of size 2141536 fixed
328159904 variable size bytes
369098752 of database buffers bytes
Redo buffers 34603008 bytes
ORA-01103: "Used2" database name in the control file is not "Tests1.
you want save ctl file and changing the dbname, get error below...
Tests1 > alter database backup controlfile to trace;
ALTER database backup controlfile to trace
*
ERROR on line 1:
ORA-01507: database not mounted
TESTING1:/app/Oracle/TESTING1/product/10.2.0.4/DBS > grep db_name initTESTING1.ora
* .db_name = "Gel1.
I found used2 entered into the alert log file...
Tests1: / app/oracle/tests1/admin/bdump > grep used2 alert_TESTING1.log
DBNAME will change to the new DBNAME of used2 tests1
Name of database used2.
ID of the database for the database used2 changed in 1933958893.
I tried to create new controlfile and tried to start... got under error so I hv mentioned even path of the data files...
ORA-01161: name of database used2 in the file header does not match name tests1This is the first law of holes.
When you are in a hole, the first thing you can do is STOP digging.
Did you take a full backup, the cold since the event started?
DBNAME will change to the new DBNAME of used2 tests1
When & why this has happened?
You have a valid & recent backup?
I tried to create new controlfile
Why did you do this?
Edited by: sb92075 may 7, 2010 20:36
-
Is there a way to recover the deleted files without using any software?
Is there a way to recover the deleted files without using any software?
Is there a way to recover the deleted files without using any software?
# Software is necessary.
First check the recylcl tray. If she isn't here, read the following:
"Deleting" a file does not delete actually it brand just space be used. There are third-party programs that can sometimes recover deleted files. The problem is that the space used by the file is likely to be replaced very quickly, and this makes the unrecoverable file.
So your chances of successfully recover this file are decent, if you try it again immediately after deleting it and quickly down. If you have used the computer since then (for example to read this answer and write that question), your chances may be very weak now.
But if the file is large enough, it's still worth a try. Stop using the computer in question immediately, if you haven't done so already. Download an undelete program (in here is one: http://www3.telus.net/mikebike/RESTORATION.html but there are many other choice; do a search) on a friend's computer and bring it to you on a diskette, CD, or drive to the thumb.
If that fails, your only recourse is to bring or send the drive to a professional file recovery company. This kind of service is very expensive and may or may not work in your case.
-
ORA-00338: 3 log thread 1 is more recent than the control file
Hello
I met the error ORA-00338 while performing the recovery of incomplete data:
ORA-00283: cool cancelled due to errors
ORA-00338: 3 log thread 1 is more recent than the control file
ORA-00312: wire 3 1 online journal: "+ DG_REDO/dbase/onlinelog/group_3.267.814820795".
Complete recovery manager.
I made this recovery on oracle 10g, database of ASM.
1. What are the possible causes of this error ORA-00338?
2. This error occurs at the beginning of the media recovery, RMAN is applying logs archived. If RMAN does newspapers "Online REDO" after applying "archived" logs required for recovery or in front of them?
3 rman is how this journal in line 3 is more recent than the control file? How can I me SNA of the journal online & file control in my environment?
Here are some details related to checkpoint scn / change # info. I found in my environment:
Before recovery:
view
v$ datafile: 642935
v$ datafile_header: 642935
v database $: 642935
Journal of v$: 640956
After the recovery fails (ORA 338 :()
v$ datafile: 640917
v$ datafile_header: 640056
v$ database: 640906
Journal of v$: 640906You could try the incomplete recovery has to do only the RESTORE DATABASE with RMAN.
Then, using the SQLPLUS command line, issue a RECOVER database with the HELP of BACKUP CONTROLFILE until CANCEL. See which he records guests for and monitor messages in the alert.logHemant K Collette
-
ORA-00221: error on write in the control file
Experts,
Recently, I have been unable to connect to the console em12c and after reviewing the State of who, I got to know that my instance of database crashed.
Status of the WHO . / emctl status SGD
Oracle Enterprise Manager Cloud control 12 c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
WebTier is in place
Oracle Management Server does not work for the following reason:
Unable to connect to the repository database. SGD will be automatically restarted once he identifies database and the listener are on the rise.
I connected and checked the alert log which was below error e/s on the controlfile. I'm afraid to say that my control files are multiplexed not and I don't have a valid backup of controlfile.
alert_log Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_lgwr_25655.trc file:
ORA-00345: redo log write error block 39818 County 15
ORA-00312: thread 1 1 online journal: ' / u01/app/oracle/oradata/TRCOEM/redo01.log'
ORA-27072: IO file error
Linux-x86_64 error: 5: input/output error
Additional information: 4
Additional information: 39818
Additional information:-1
Kill Jan 28 11:34:57 2014
Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_ckpt_25659.trc file:
ORA-00206: error in writing (block 3, block # 1) of the control file
ORA-00202: control file: ' / u01/app/oracle/oradata/TRCOEM/control01.ctl'
ORA-27072: IO file error
Linux-x86_64 error: 5: input/output error
Additional information: 4
Additional information: 3
Additional information:-1
Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_ckpt_25659.trc file:
ORA-00221: error about writing about a control file
ORA-00206: error in writing (block 3, block # 1) of the control file
ORA-00202: control file: ' / u01/app/oracle/oradata/TRCOEM/control01.ctl'
ORA-27072: IO file error
Linux-x86_64 error: 5: input/output error
Additional information: 4
Additional information: 3
Additional information:-1
Kill Jan 28 11:34:57 2014
CKPT (ospid: 25659): put an end to litigation because of the error 221
Please help me what should be the solution to fix this error. Is this just a mistake of e/s on the controlfile, or do I have a disk failure?
var http://www.filedropper.com/messagesVersion of the OS: RHEL 5 (64-bit)
Database Version: 11.2.0.3 (64-bit)
Thank you
Fran,
Syslog does not display the IO error.
I followed the steps below to solve the problem.
1] stop the database
[2] restore control01.dbf to the backup location.
[3] mount the database
[4] recover database until cancel[5] Alter database open resetlogs.
Also, takes a full cold of RMAN backup of the database, the multiplex control files and recovery logs.
-
How can I specify location of the control file when the manual creation of DB?
DB version: 11.2.0.4
OS: Oracle Linux 6.6
The CREATE DATABASE command creates the control file.
CREATE DATABASE command is executed once you start the instance in NOMOUNT State as shown below.
SQL > startup nomount pfile=$ORACLE_HOME/dbs/initBRCPRD.ora
SQL > create database 'BRCPRD '.
MaxInstances 32
MAXLOGHISTORY 1
maxLogFiles 192
maxlogmembers 3
..
.
.
< snipped >
When you create the database manually, we can define the control_files parameter in the init.ora as below and control file will be created at this location. Right?
control_files = ("" / u01/oradata/BRCPRD/BRCPRD_control01.ctl","/u01/oradata/BRCPRD/BRCPRD_control02.ctl "")
When I was generating the DB using DBCA GUI creation scripts, it asks to enter the location of the Online redo logs and control files.
I entered my desired location. But, I couldn't find CONTROL_FILES parameter in the init.ora file generated the DBCA. This is why I got confused. I think that DBCA is internally somehow. So thought I'd post it here.
Hi John, OP
Just checked the init.ora file created by DBCA. Although the parameter CONTROL_FILES is undefined, db_create_file_dest = '+ DATA_DG1' was created. OMF default location is defined by the db_create_file_dest parameter.
So, I could safely use this script for the manual creation of DB, and during the CREATE DATABASE command execution, oracle will place CONTROL_FILES + DATA_DG1 using the format;
+DiskGroup/dbname/filetype/filetypetag.file.incarnation
-
Problem to identify the control file when creating physical standby
Hello
(database version: 10.2.0.4)
linux platform)
I use the command below to create physical database from a backup before:
I already tried to cross but always give same errorrman target / auxiliary sys/tiger@paceview Recovery Manager: Release 10.2.0.4.0 - Production on Tue Sep 4 18:05:53 2012 Copyright (c) 1982, 2007, Oracle. All rights reserved. connected to target database: PACEVIEW (DBID=2092349485) connected to auxiliary database: PACEVIEW (not mounted) run { allocate auxiliary channel c1 device type DISK; set until sequence 38; duplicate target database for standby dorecover nofilenamecheck; } released channel: ORA_DISK_1 allocated channel: c1 channel c1: sid=35 devtype=DISK allocated channel: c2 channel c2: sid=36 devtype=DISK executing command: SET until clause Starting Duplicate Db at 04-SEP-12 contents of Memory Script: { set until scn 138180211934; restore clone standby controlfile; sql clone 'alter database mount standby database'; } executing Memory Script executing command: SET until clause Starting restore at 04-SEP-12 channel c1: restoring control file ORA-19625: error identifying file /backup/rman/paceview/DEL1_standby.ctl ORA-27037: unable to obtain file status Linux-x86_64 Error: 2: No such file or directory Additional information: 3 ORA-19600: input file is control file (/backup/rman/paceview/DEL1_standby.ctl) ORA-19601: output file is control file (/PGHProdDB/oradata/paceview/control1.ctl) failover to previous backup released channel: c1 released channel: c2 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 09/04/2012 18:01:44 RMAN-03015: error occurred in stored script Memory Script RMAN-06026: some targets not found - aborting restore RMAN-06024: no backup or copy of the control file found to restore
Thank youHello;
That's what I'd do:
Primary backup (change in your directory as needed)
RMAN RUN { allocate channel d1 type disk; backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database; sql 'alter system archive log current'; backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all; backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p'; release channel d1; }
Move the backup and duplicate like this:
rman target sys/password@PRIMARY auxiliary / RMAN> run { allocate channel C1 device type disk; allocate auxiliary channel C2 device type disk; duplicate target database for standby nofilenamecheck; }
For details of this method, see:
http://www.Visi.com/~mseberg/duprman2.html
Best regards
mseberg
-
All,
I need to recover the data file 2, which is for the undo tablespace and it is in the State to recover and I need to recover the data files now.
But the bad news is we have no backup at all and we have no archive logs (log archiving is disabled in the database)...
In this case how can I recover the data file...?
SQL > select a.file #, b.SID, a.status from v$ datafile a, v$ tablespace b where a.ts #= b.ts #;
FILE NAME STATUS NO.
---------- ------------------------------------------------------------------------------------------ -------
1 /export/home/oracle/flexcube/product/10.2.0/db_1/oradata/bwfcc73/system01.dbf SYSTEM
* RETRIEVE /export/home/oracle/logs/bw/undotbs01.dbf 2 *.
3 /export/home/oracle/flexcube/product/10.2.0/db_1/oradata/bwfcc73/sysaux01.dbf online
4 /export/home/oracle/datafiles/bw/bwfcc73.dbf online
5 /export/home/oracle/datafiles/bw/bwfcc73_01.dbf online
SQL > archive logs list;
Database log mode no Archive Mode
Automatic archival disabled
Destination of archive USE_DB_RECOVERY_FILE_DEST
Sequence of journal online oldest 4940
Current log sequence 4942Hello
First, you must open a ticket with oracle Support and explore the options
You can use this note to fix:
RECOVERY OF A LOST IN A [ID 1013221.6] UNDO TABLESPACE DATA FILEIf you are unable to drop Undo tablespace as Undo Segment recovery must
You can download the trace file following the opening of the ticket
SQL>Alter session set tracefile_identifier='corrupt'; SQL>Alter system dump undo header "
"; Go to udump ls -lrt *corrupt* Upload this trace file Also upload the alert log file Kind regards
Levi PereiraPublished by: Levi Pereira on November 29, 2011 13:58
-
Deleted data file update the control file?
Hello!
I deleted a file from data in a tablespace. It was done on purpose because I have no more need. Unfortunately
I have not updated the database control file, now I get an error message:
ORA-01157: impossible to identify or to lock the 202 data file - see DBWR trace file
ORA-01110: data file 202: "D:\ORACLE\PRODUCT\10.2.0\ORADATA\MINOTAUR\TMP_01.DBF."
How update the control file to get rid of this error?
I use Windows and exit DB 10.2.0.2.
Thank you very much for your help!
ChristianI think that I made a mistake of reading here.
Looks like you have deleted a TMP file.You then have to join v$ tablespace with v$ tempfile in the statement.
It's a 10 G (or higher) database?
Try to drop the tablespace that belongs to this data file, otherwise recreate the controlfile (needs database is offline)
HTH
FJFranken -
How can I validate the data in the control file?
Consider that the SQLLoader reads the data entry of the path file and loads the data in the base tables up on top of the description specified in the control file.
First, the form is created:
create table sql_loader_1 (load_time date, digital Champ_1, Champ_2 varchar2 (10))
Example of control file:
load_1.CTL
load data
INFILE "load_1.dat", "str"\r\n"
insert into table sql_loader_1
(
load_time sysdate,
Champ_2 position (01:10).
Champ_1 position(11:20)
)
Note that positions 11 to 20 are loaded in positions 1 to 10 in Champ_2 and Champ_1. The load_time field is filled with time current (sysdate) load.
Here is the data. The name of the file (load_1.dat) had been specified with the statement for infile in the control file.
load_1.dat
0123456789abcdefghij
**********##########
foo bar
This is a very long line
and the next one is
short
declared the Champ_1 as a numeric data type, but the input data file contains the data "Sue"(position 11:20) so the sql loader adds not the record to the database instead the record is written in the bad file. But I want to validate the data of the "(position 11:20) is digital or not." How can I post this in the control file itself? If it is not possible, how can I validate it in the database? give me a sample code to explain thisHere are two ideas.
Idea 1: This control file will check to see if the data to be loaded in Champ_1 contains a number (including the negative and decimal).
load data infile 'load_1.dat' "str '\r\n'" insert into table sql_loader_1 ( load_time sysdate, field_2 position( 1:10), field_1 position(11:20) "decode(trim(translate(:field_1,'-0123456789.',' ')),null,:field_1,-999)" )
If Champ_1 is a number or null, it is passed through, as is. If there is no numeric characters (in addition to '-'and'.') a distinct value-999 will be inserted for you allow to load the rest of the columns and easy to see the lines had data that cannot be loaded in Champ_1. This idea has its flaws (a string like "... ("will always drain the .bad file)
Idea 2: Load the data into a staging table first (or define an external table) where all columns are VARCHAR2. Then use SQL or PL/SQL to validate data in the staging table in your process to move the data into the table with the actual data types.
-
the steps of the control file multiplexing
I am preparing for the OCP and I met the case below and I don't know which is the right answer.
So, could help the guys take the right one and explain why?
144: you want to protect your database from single point of failure by multiplexing by the control file. Your database is started using SPFILE. You must perform the following tasks
1. stop the database instance;
2 copy the control to the new location.
3 configure the parameter CONTROL_FILES.
4 restart the instance.
Select the order in which these tasks must be completed:
(a) 1,2,3,4
(b) 3,2,1,4
(c) 3,1,2,4
(d) 2,3,1,4
the answer said c) is good.
Here is my explanation, please see if it's good?
to ensure the consistency of the control file before copying again place, we must stop the database.
Thus, the order is 2 must be after 1, so we got a) or c).
to configure CONTROL_FILES, you must start the instance at least, so we can eliminate one) and we left with c).
Correct me if I'm wrong.
Thanks to a bouquet.
Published by: PhoenixBai on December 18, 2010 10:46PhoenixBai wrote:
>
so while editing, it will search both controlfiles...
>
instance would check if the two controlfiles exist, and if one of them isn't, then instance will not be able to mount the database right?YES, there should be two controlfiles, otherwise you get errror "Can' identity controlfile.
>
My question is WHY NOT?
These two controlfiles are the same, and instance would only need or read one of them to go further, then why not be able to mount the DB?It's depends on the parameter control_files you have defined in the PFILE/SPFILE file...
multiplexing is to avoid the SPOF (single point of failure)...as you say, a lost controlfile... without informing you if the oracle database starts with unique controlfile... so, how can you know... If you continued if tomorrow you lost the other? While is it?
Thank you
-
Hello
I try to simulate recovery scenarios. My Oracle database 11g is configured with two control files. I stopped the database and a corrupt control files by editing with random characters using a hex editor. When I started the database, everything is going like nothing happened. No warning, no errors, in Enterprise Manager the State control of the file is VALID. I opened the control file, but it is still published (so it has not been automatically replaced by the good, which is not a good thing anyway).
Why is this happening? The system is unable to warn me if one of the control files is corrupt?
Thank you
Adrian
Published by: Adrian P on December 7, 2010 10:10Maybe you just edited a part that Oracle doesn't care much in normal conditions of use? Check the v$ archived_log, maybe you'll see your changes?
-
Creation of the control file has no
Hi all
When I am creating the control file my terminal is suspended on the next step
SQL > @/u02/ORACLE/orcldb/9.2.0/dbs/contrl.sql
ORACLE instance started.
Total System Global Area 581506668 bytes
Bytes of size 452204 fixed
402653184 variable size bytes
167772160 of database buffers bytes
Redo buffers 10629120 bytes
54
and in the log file alert receive no errorHi, Frank.
Very nice work Helios (as usual).
Thank you, I share just what I know thatsall
Thank you, I learned something new today.
The same for all users of the forum
Normally, I clone cold backups so I don't need to manually create the controlfile.
I see that your solution is contained in the following note;
"Cloning of Oracle Application 11i with rapid Clone /R12 - database (9i/10 g / 11 g) using on Open Database [ID 760772.1] hot backup.You are correct, we mainly use this method for hot backup-Section advance clonning
But I'm still curious to know if Nicolas is to create a clone of a hot backup or a backup to cold, and why he uses the 'ARCHIVELOG' option on his clone.
It depends, for me I prefer to choose option NOARCHIVELOG and NORESETLOG
Please check:
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_5003.htmRespect of
HELIOS
Maybe you are looking for
-
Cannot remove the Photos from the iPhone 6
Hello! Because of work commitments, I've been taking pictures to work with my phone over two or three years, but I no longer have that weight on my shoulders and I would like to get rid of 250-300 photos still on the phone but I seem to not be able t
-
Ugh! Frustrated... can not find printer email address!
Just bought the HP Photosmart C309G for my mom's birthday. I just put it in place with the exception of the eprint. I sat here for almost 3 hours and CAN NOT find the e-mail address of printers. I went to eprintcenter.com and follow the instructions
-
ABBYY 9.0 Sprint - safe or a part of the virus that seems to be eating my files?
I continued to get guests to download an audio file from an unknown source today, so I just kept close the box. Then, the computer froze and when I rebooted I found that the programs are not open as they usually - slow and brilliance. I took the comp
-
My old Windows XP no longer works correctly - it would start to Windows, but that restart. Otherwise, all data and system files on the hard disk are completely legible [no error reported by various scans]. I made a copy of that old hard drive [with t
-
File 6e6031226994e73345e6701f96bbee - is - this?
A few days ago a folder with the name '6e6031226994e73345e6701f96bbee' appeared on my PC. I don't know if it's the case Ms. It contains the installer with the name "NDP40-KB2446708". Scanned with Norton, OK I can't remove it, so I was wondering what