doubts in the database using backup controlfile recovery.
Hi gurus,
I have a doubt in database recovery using backup controlfile.
I do not speak of "ORA-01207: file is newer than the control file - old control file.
Here, any of our files archive / redo log have been lost and the problem of lack of update in the control file.
So why open the database in resetlogs option, after recovering the database by using a backup controlfile. ?
Thanks in advance
Mahi
In order to maintain the consistency of the data, the RCS should be the same in all the files of the controlfile & file REDO data current.
By definition when you use 'backup controlfile' there a SNA expired in it.
RESETLOG requires the RCS to 1 in order to get consistency across all files in the database.
CREATE CONTROLFILE fills this new file with the most recent SNA that exist in the data files.
It's just the way Oracle has been implemented.
Tags: Database
Similar Questions
-
RECOVER, DATABASE using backup controlfile until the
Hello
in 10g R2, may this work:
Thank you.RECOVER DATABASE using backup controlfile until '2009-05-21:12:47:30';
GregX wrote:
In fact, it should say something like this:until time ' to_date (May 19, 2009 10:30 "," dd-mm-yyyy hh24:mi:ss') ";
No, you needn't.
Doc http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007361
"+ If recovery up to one hour, the time is always specified using the following format, delimited by single quotes: 'YYYY-MM-' DD:HH24:MI:SS. '. + »Nicolas.
-
ORA-01194 and ORA-00604 when using backup controlfile set #2
Oracle 11.2.0.1 database version
Enterprise Linux 5.4
Database is in archivelog mode.
I'm trying to recover a database according to a backup controlfile to trace #2. Create the controlfile works very well, but recover the database fails.
From what I understand, the recovery fails because it cannot roll forward - 39 sequence is in the online missing redo log file. However, the database opens with the restlogs option and I understand that it should use the archivelogs in order to roll back. Since it is a new controlfile he does not know the archivelogs, but he does not accept to register or use archivelog files.
The recovery as shown in set #2 doesn't seem to work as expected. Any ideas?
Following errors:
Thank youSQL> CREATE CONTROLFILE REUSE DATABASE "RCAT" RESETLOGS ARCHIVELOG etc. Control file created. Tyring to register on of the archivelogs does not work: SQL> ALTER DATABASE REGISTER LOGFILE '/u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc'; ALTER DATABASE REGISTER LOGFILE '/u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc' * ERROR at line 1: ORA-00604: error occurred at recursive SQL level Applying an existing archivelog during recovery does not work: SQL> recover database using backup controlfile until cancel Specify log: {<RET>=suggested | filename | AUTO | CANCEL} /u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc ORA-00310: archived log contains sequence 33; sequence 39 required ORA-00334: archived log: '/u02/fra/RCAT/archivelog/2010_09_19/o1_mf_1_33_69bfo5tx_.arc' ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below ORA-01194: file 1 needs more recovery to be consistent ORA-01110: data file 1: '/u02/RCAT/datafile/o1_mf_system_6959kz7l_.dbf' ls -l /u02/fra/RCAT/archivelog/2010_09_19: -rw-r----- 1 oracle dba 49313280 Sep 19 00:01 o1_mf_1_33_69bfo5tx_.arc -rw-r----- 1 oracle dba 312320 Sep 19 00:03 o1_mf_1_34_69bft63b_.arc -rw-r----- 1 oracle dba 20343808 Sep 19 02:10 o1_mf_1_35_69bo6y6j_.arc -rw-r----- 1 oracle dba 40960 Sep 19 02:12 o1_mf_1_36_69boc9t8_.arc -rw-r----- 1 oracle dba 20992 Sep 19 02:13 o1_mf_1_37_69bofng4_.arc -rw-r----- 1 oracle dba 794624 Sep 19 02:15 o1_mf_1_38_69bokwbf_.arc
MarkusMarkus Waldorf wrote:
I think that I am aware and do not suggest to use the hidden setting.What worries me is that the value #2 of the controlfile to trace the contours of the database backup can be recovered even with the lack of recovery online newspapers, but apparently this is not the case. What I also don't understand, is why he simply not restore using the information of the archivelogs. The database was not shut down properly, but isn't always the case when you lose again-online newspapers?
Here is the text of the controlfile.sql
-Set #2. RESETLOGS case
--
-The following commands will create a new control file and use
-to open the database.
-The data used by the Recovery Manager will be lost.
-The content of online newspapers will be lost and all backups
-be invalidated. Use this option only if online newspapers are damaged.Published by: Markus Waldorf Sep 20, 2010 09:34
You are right. But it is especially the case.perform, create the new database and will stop immediately (without demolition) and remove newspapers online OS level. And try to recover the database using backup controlfile until cancel or just recover database until cancel then enter Word Cancel and resetlogs option database open. It will work. Because it actually do not need any recovery operation. But your case you need to recover the database. You consider backup restore las and perform incomplete recovery. I think you can do the first test.
-
Recovery using backup Controlfile...
Hi all
I have a little doubt about the recovery process...
Suppose I took a cold backup (after immediate stop).
After that, I started the database, made a newspaper change and delete the control file.
In this case when I try to recover the database by using a backup controlfile (recover database using backup controlfile), I need to provide the name of the log file manually
to ensure no loss of data during the recovery process.
After that, I need start the database with the RESET LOGS.
But my question is why the database will force you to RESETLOGS even if you haven't lost all the data or you haven't made an incomplete recovery.
Thank you...>
Suppose I took a cold backup (after immediate stop).
After that, I started the database, made a newspaper change and delete the control file.In this case when I try to recover the database by using a backup controlfile (recover database using backup controlfile), I need to provide the name of the log file manually
to ensure no loss of data during the recovery process.
After that, I need start the database with the RESET LOGS.But my question is why the database will force you to RESETLOGS even if you haven't lost all the data or you haven't made an incomplete recovery.
>
It's the RESETLOGS forcing resynchronization of the control file.A control file "backup" is a copy and is supposed to be an older file so it needs to be synchronized with the redo log using RESETLOGS files.
See the doc of SQL language
http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_1004.htm
>
RESETLOGS. NORESETLOGS clause determines if Oracle database resets the current sequence number to 1, archives logs not archived (including the active log) and eliminates any information redo that was not implemented during recovery, ensuring that it will never be applied. Oracle database using NORESETLOGS automatically except in the following specific situations, which require a framework for this clause:You must specify RESETLOGS:
After completing the incomplete media recovery or media recovery using a backup control file
-
Database ALTER DATABASE RECOVER using backup controlfile with AUTO option
Hello. I was recovering a database today and had a little blip.
I have published the following:
Database ALTER DATABASE RECOVER using backup controlfile
I then chose the AUTO option, allowing Oracle to select all available log files so that it would recover to the last log found in the destination of archive
However... has performed the following:
ORA-00289: suggestion:
/U03/Oracle/stk2proddata/archived_logs/arch1_242449_737547185.dbf
ORA-00280: change 30031145558 thread 1 is in sequence #242449
ORA-00278: log file
' / u03/oracle/stk2proddata/archived_logs/arch1_242448_737547185.dbf' is no longer
necessary for this recovery
ORA-00308: cannot open archived log
' / u03/oracle/stk2proddata/archived_logs/arch1_242449_737547185.dbf'
ORA-27037: unable to get file status
Linux-x86_64 error: 2: no such file or directory
Additional information: 3Two messages above that I expected. However, I made then this:
SQL > alter database open resetlogs;
ALTER database open resetlogs
*
ERROR on line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: ' / u02/oracle/stk2proddata/system01.dbf'
This is not what I expected. What I've done wrong? Should I once received the message "cannot open archived log", launched to CANCEL?
I then recovered again, but used
SQL > restore database using backup controlfile until cancel;
ORA-00279: change 30031145558 generated at 30/04/2014 09:58:34 needed to
thread 1
ORA-00289: suggestion:
/U03/Oracle/stk2proddata/archived_logs/arch1_242449_737547185.dbf
ORA-00280: change 30031145558 thread 1 is in sequence #242449
Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}ORA-00279: change 30031157768 generated at 30/04/2014 10:06:07 needed to
thread 1
ORA-00289: suggestion:
/U03/Oracle/stk2proddata/archived_logs/arch1_242450_737547185.dbf
ORA-00280: change 30031157768 thread 1 is in sequence #242450
ORA-00278: log file
' / u03/oracle/stk2proddata/archived_logs/arch1_242449_737547185.dbf' is no longer
necessary for this recovery
Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
Cancel
Cancelled media recovery.
SQL > alter database open resetlogs;Database altered.
No problem then here. Could someone please explain what I did wrong the first time and the second time right? Is this a problem with the car and using CANCEL?
Thank you!
DA
11.2.0.2
RHEL 5.5
Bug: 4178579
-
Recovery of the system using Backup automatic backup of XP program wants a disk is there a way to let him use a CD instead?
Name of the operating system Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 3 Build 2600
Manufacturer of operating system Microsoft Corporation
250GB_DRIVE system name
System manufacturer HP Pavilion 061
EG705AA-ABA M7265C system model
System Type X 86-based PC
Processor x 86 Family 15 Model 4 Stepping 4 GenuineIntel ~ 2800 Mhz
Version/Date BIOS Phoenix Technologies, LTD 3.17, 20/04/2006
SMBIOS Version 2.4
Windows C:\WINDOWS directory
System directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume2
The local United States
Hardware Abstraction Layer Version = "5.1.2600.5512 (xpsp.080413 - 2111).
250GB_DRIVE\HP_Administrator user name
Time zone Pacific Daylight Time
Total physical memory 072,00 MB 3
1.55 GB available physical memory
Total virtual memory 2.00 GB
Available virtual memory 1.96 GB
Page file space 4.83 GB
Paging file C:\pagefile.sysHello
The ASR (automated system recovery) tool must have a disk for restoration purposes. The best option, if you really want to use ASR, is a floppy of USB external as suggested by chrisamiller.
You can also follow this procedure to create the ASR files without the floppy drive and then copy them to another location to create a floppy disk or, if you're lucky, your PC can boot from a USB key (I never tried to start ASR on a key, do not know if it will work or not, but it might be worth it) :
"You can"trick"the ASR in the race without a floppy drive." When it gets to the point where he writes on the diskette to cancel it. He writes two files, which are used for recovery, in the Windows\Repair directory. After completing your ASR copy these two files (files asr.sif and asrpnp.sif) to a network location and then make the diskette also. Make sure you update your disk whenever you make a new ASR or your backup will be watered.
Or, you can use a USB floppy drive. It is sometimes the only option, especially if you need to install SCSI or SATA drivers during the recovery. »
a: when you start the backup, it may be in Wizard mode. Follow the link to the Advanced Mode.
b. Backup tab.
c. click on the box next to the drive you want to back up so that it has a blue box.
d. backup media or file name: Browse.
e. Select a new file name on your CD.
f. start the backup. -
Recover using backup controlfile
A binary restoration of the controlfile requires incomplete recovery of the database and a database open with resetlogs.
But I understand why it is necessary to specify 'using backup controlfile' with the recover command - what is the difference. With the help of Oracle 11.2.
Since Oracle 10 g, it is more necessary to back up the database after a database opened with resetlogs and the recovery process is able to recover a database to a previous, provided incarnation archivelogs are available. What is the history please?I just came across this old post of mine. Actually, I don't really remember what it was. However, I think the confusing part was simply that I didn't, that SQL * MORE and RMAN recovery is not the same.
When you use SQLPLUS to recover the database "with the HELP of BACKUP CONTROLFILE' is necessary. Under RMAN is not necessary because it automatically determines a BACKUP CONTROLFILE. If the question was probably SQL vs RMAN database recovery.
-
What happens when the database in backup Mode?
Hello
What happens when we kept the database in backup mode, by using the command "Alter database Begin Backup" means;
Thank you...
ASITOK, now my query is whether Oracle freeze the data file header and information is stored in the log file of restoration by progression. So if my backup job continues for 30 min and at the same time someone did some update of database, then how these updates to the information written back to the data file after "Alter Database End Backup'.»
Oracle only blocks data file headers, no body. Modified blocks will be stored in data files (at control points) even in backup mode.
If checkpoint has not arrived yet after this update and validation, and DB has decreased, then when it will start it will redo-log automated recovery.Published by: user11181920 on Sep 21, 2012 11:54
-
Duplicate RMAN cloning using the database using the current database
Hi all
I am new bie, I want to clone my target database using the rman command 'DUPLICATE database OF ACTIVE DATABASE"new host.
steps on google, I searched, but I got confused, I doubt if you need to install oracle rdbms softare on new host or not? and also should I copy all files (redo, control, datafiles) to the new host? kind LY help and tell me the steps to clone the database using rman.your help will be appreciated.
Thank you.
Kind regards.
OS: RHEL 5.4
DB: 11.2.0.3
Hello
Have you not through document link to Gavin at least. It's very simple steps. If you wait until other measures, then won't them.
He had provided the demonstration, at least get in 'google' (you'll have so many links)
The Oracle Dba Italian Blogger: how to clone an Oracle 11 g 2 home
http://balaoracledba.com/2013/12/16/cloning-an-existing-Oracle11g-release-2-RDBMS-installation/
Note: If you feel always complex, better skip the task itself.
-Thank you
Pavan Kumar N
-
How to start the database using CRS to start the database instance
Dear Experts,
How to start the database using CRS to start the database instance
As a solution: remove the write permission on the/etc/oratab user database to prevent update to arrive.
There is no harmful effects known to CRS / RDBMS operation if this workaround solution is used. This has been discussed in Bug 13028802.
-
RCU error: unable to connect to the database using the contact information provided
Hello
I am not able to connect to the database using the remote control 11.1.1.10.1 to create patterns. I ran the UCR even a week ago and I managed to connect. My database and listener are up and running and the host and the credentials are correct. I don't know where is the problem. Any help will be appreciated. Attaching the screenshot for reference.
Concerning
Oumaima
Hi Handal
Thanks for the reply. Looks like someone had blocked the firewall settings, so I was unable to connect to the database using the port.
Thank you
Oumaima
-
On oracle cloud virtual, image I was able to create the database using DBCA (virtual image) oracle cloud. I understand with the virtual image, we won't have a lot of tools like on DAAS cloud. But could please at least use us dbconsole?
I tried to start dbconsole, and it did not work:[oracle@ltutest ~] $ emctl start dbconsole
OC4J Configuration problem. /U01/app/Oracle/product/11.2.0/dbhome_1/OC4J/J2EE/OC4J_DBConsole_ltutest.compute-aulatrobeu83140.oraclecloud.internal_ORCL not found.
According to the oracle help doc center - "creating a database on an instance of virtual image service" (http://docs.oracle.com/cloud/latest/dbcs_dbaas/CSDBI/GUID-29290A81-8798-4988-848E-77A1BE0CF08A.htm#GUID-4851560B-D4B6-42...)
database was created with the option as:
emConfiguration - NONE - storageType FS
I guess we have to manually configure the em console, but when I tried to create it, he told me that "' Dbcontrol repository already exists." "
When I try to start it, it exports the error
[Oracle@ltutest ~] $ emctl start dbconsole
OC4J Configuration problem. /U01/app/Oracle/product/11.2.0/dbhome_1/OC4J/J2EE/OC4J_DBConsole_ltutest.compute-aulatrobeu83140.oraclecloud.internal_ORCL not found.
Could someone could give me help with this problem?
Thanks Brian. I tried your command, and it works. Now I've encountered another problem, how can I browse the URL?
I created the access rule for access remote on port 1521 and 1158. but when I try to browse the EM console URL, it does not work. all the configurations that I need to do?
-
Inserting a new record in the database using a form empty ADF
Hello
I'm trying to insert a new record into the database using a form.
I have an Employee table and its corresponding entity object and the view object. The table has an id that is used as the primary key and is filled using a sequence in the comic book.
Data controls, I dragged and dropped at the sight of the employee as a form of ADF and checked the submit button include. Then I dragged and dropped the validation on submit button operation.
When I connect to the app and go to the page used to create, I have 2 problems:
1 - the form is filled with the logged in user info.
2. If I try to change the news and validation, the user info is changed in the database and no new record is created.
It makes a little sense to me, but I would like to know if there is a way around it (get an empty form and insert a new record).
NB: the employee id is not part of the form, I want to be filled using the sequence.
Kind regards
MBUser, please tell us your jdev version!
To do this, you must create a new record before going to the display of the form page. In a stubborn workflow (btf), you drag the operation createInsert of the VO on the btf and it will generate a link method, add a view to the btf and put a navigation of the binding of the method of the page. Mark the method as 'Activity by default'. Now, ren, you call the workflow, you create a new record that will show your blank form.
Timo
-
Hello
I do MaxL Shell.
Can reset us the database using the command MaxL? How?
What is the advantage of this command?
or
one last Question, which is:--
How to clear all data using MaxL.
I search in the technical reference Guide, but I do not have this two commands.
Thank youIf you use the following it will erase the data (+ EIB)
editing data in database appname.dbname reset;
The following will erase the data and remove all Landies (which is actually the same above - updated so I hope that's clear, well I hope)
change the appname.dbname reset database;
The following will erase data, delete all EIB and contour
ALTER database appname.dbname reset all;
^ ^ ^ Sorry I missed the last example ^ ^ ^ it is added now while the world will not end immediately :)
See you soon
John
http://John-Goodwin.blogspot.com/Published by: JohnGoodwin on October 30, 2012 14:00 (sorry this wasn't clear)
-
not able to connect to the database using the oracle instant client
Hello
I am not able to connect to the database using the instant oracle from my local PC client. They use to connect to the database files and sqlnet.ora files LDAP.ora. If I want to test the connection, I found this executable tns wasn't there, so not able to tnsping. So I'm not able to solve this problem.
Please let me know if a solution for everything
Client Oracle: oracle 10.2bFAT client 32-bit
Platform: windows 7 64-bit
Thank you
VeeraThere is little that tnsping can do sqlplus can't.
Instead of
tnsping mydb.myorg.com
Try
sqlplus-s-L /@mydb.myorg.com
or
sqlplus-s-L user/[email protected]If you get
ORA-12154: TNS: could not resolve the connect identifier specified
you know that the customer could not resolve 'mydb.myorg.com '.If you get
ORA-12541: TNS:no listener
then "mydb.myorg.com" could be resolved, but there is no listener it running.If you get
ORA-12514: TNS:listener is not currently of service requested in connect descriptor
then "mydb.myorg.com" could be solved, the listener is in place, and the database is out of service.If you get
ORA-01017: name of user and password invalid. connection refused
you know that 'mydb.myorg.com' has been successfully resolved, and the database is running.If you want more details, such as how and what "mydb.myorg.com" is resolved, turn the tracking by adding the following to "sqlnet.ora:
TRACE_LEVEL_CLIENT = ADMIN
TRACE_DIRECTORY_CLIENT = C:\TEMP (a writable directory)Then you will find lines like this in the trace file:
-THE INFORMATION SOURCE PARAMETER FOLLOWS-
Attempt to load system pfile source C:\oracle\network\admin\sqlnet.ora
Source of the setting successfully loadedAttempt to load the local pfile source C:\Dokumente und Einstellungen\lanadvall\sqlnet.ora
The parameter source has not been loaded.This shows you which configuration files are read, followed by the settings real read.
nnfgrne: will read if path adapters
nnfgrne: switching adapter LDAPHe's now looking for LDAP name resolution.
nnfloidinfocache: Info: insert the value DIRECTORY_SERVSSL = oid.host.myorg.com:389 at index 0 in NLPA_CACHE
These are LDAP servers, he is trying.
nnflilc: conn sync opening of oid.host.myorg.com:389
nnflfdn: turning simplified mydb.myorg.com name to a unique name.
nnflfdn: using the administrative context: dc = prod
nnflfdn: the domain name resulting is cn = mydb, cn = OracleContext, dc is myorg, dc = comnnflrne1: runs the directory for dn: cn = mydb, cn = OracleContext, dc is myorg, dc = com
nnflqbf: search: Base: cn = mydb, cn = OracleContext, dc is myorg, dc = com, range: 0, filter: (objectclass = *)nnfgrne: query fails, the leap to the next map
Did not work. Try the other adapters:
nnfgrne: switching adapter EZCONNECT
snlinGetAddrInfo: name resolution failed for test64.test
No luck.
If the resolution is approved, it will look like this:
nnfloidinfocache: Info: insert the value DIRECTORY_SERVERS = oid.host.myorg.com:389 at index 0 in NLPA_CACHE
nnflilc: conn sync opening of oid.host.myorg.com:389
nnflfdn: turning simplified mydb.myorg.com name to a unique name.
nnflfdn: using the administrative context: dc = prod
nnflfdn: the domain name resulting is cn = mydb, cn = OracleContext, dc is myorg, dc = comnnflrne1: runs the directory for dn: cn = mydb, cn = OracleContext, dc is myorg, dc = com
nnflqbf: search: Base: cn = mydb, cn = OracleContext, dc is myorg, dc = com, range: 0, filter: (objectclass = *)niotns: the call to address: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=dbserver.host.myorg.com) (PORT = 1521)) (CONNECT_DATA = (SID = DBNAME) (CID = (PROGRAM = C:\Oracle\ora1020\bin\sqlplus.exe)(HOST=pc247596)(USER=lanadvall)))
Yours,
Laurenz Albe
Maybe you are looking for
-
When I copy a link using Firefox 13.0 for Ubuntu the cursor changes to a hand holding a link. I can not paste the link, or exit Firefox then have to restart my computer. This only started happening after I upgraded to Firefox 13.0.
-
Qosmio F60 - new SSD now will not appear in the BIOS or at the Win7 Installation
I recently bought a new OCZ Vertex 4 128 GB Solid State Drive to upgrade my PC laptop Toshiba Qosmio F60 with. After that I installed it first of all, it has been detected immediately in both the bios and during the installation of Windows 7. However
-
Original title: slider I replaced a cooling fan on my CPU and removed and replaced the cooling fan on my ASUS video card to get the model number. When I turned my computer back on, the slider drag far behind the mouse and sometimes jumps across the s
-
Rebel T3 does not take pictures, bright yellow flashing, please help!
My Rebel T3 take pictures. A yellow light flashes to before, but nothing else happens. I tried to replace the battery, mode change, but it will not still images. It was working fine yesterday.
-
Help! I get this driver igfx has stopped working also but...
When I connect in my system and look at the Solutions Microsoft report, it says that I don't have malware protection. I have McAfee so I called and had them check it on my system, after they checked, it has not crashed on me no more that day, he star