Roll forward standby database with the incremental backup, when a data file is deleted in primary education
Hello
I'm nologging operations + deleting some files in the primary and you want to roll forward the day before using the incremental backup Yvert.
I do in particular, as the files are dropped?
I got to meet ( Doc ID 1531031.1 ) which explains how to roll forward when a data file is added.
If I follow the same steps, to make the move to restore the data file newly added, will it work in my case?
Can someone please clarify?
Thank you
San
I was wondering if reocover noredo is performed before restored controlfile, oracle will apply the incremental backup error-free files, and in this case, what would be the status of the data file in the control file.
Why do you consider to retrieve the day before first and then in the restaurant of the controlfile will lead to problems. Please read my first post on this thread - I had clearly mentioned that you would not face problems if you go with the method of deployment.
Here is a demo for you with force logging is disabled. For the first time the day before resuming and restored then the controlfile ensures:
Primary: oraprim
Standby: orastb
Tablespace DataFile of MYTS is removed on primary:
SYS @ oraprim > select force_logging in the database of v$.
FORCE_LOGGING
---------------------------------------
NO.
Currently the tablespace is to have 2 data files.
SYS @ oraprim > select file_name in dba_data_files where nom_tablespace = 'MYTS;
FILE_NAME
-------------------------------------------------------
/U01/app/Oracle/oradata/oraprim/myts01.dbf
/U01/app/Oracle/oradata/oraprim/myts02.dbf
In standby mode, the tablespace is to have 2 data files:
SYS @ orastb > select name from v$ datafile where ts #= 6;
NAME
--------------------------------------------------------------------------------
/U01/app/Oracle/oradata/orastb/myts01.dbf
/U01/app/Oracle/oradata/orastb/myts02.dbf
Postponement of the day before on the primary log shipping
SYS @ oraprim > alter system set log_archive_dest_state_3 = delay;
Modified system.
Dropped 1 MYTS datafile on the primary.
SYS @ oraprim > alter tablespace myts drop datafile ' / u01/app/oracle/oradata/oraprim/myts02.dbf';
Tablespace altered.
Removed some archives to create a space.
[oracle@ora12c-1 2016_01_05] $ rm - rf * 31 *.
[oracle@ora12c-1 2016_01_05] $ ls - lrt
13696 total
-rw - r - 1 oracle oinstall 10534400 5 January 18:46 o1_mf_1_302_c8qjl3t7_.arc
-rw - r - 1 oracle oinstall 2714624 5 January 18:47 o1_mf_1_303_c8qjmhpq_.arc
-rw - r - 1 oracle oinstall 526336 5 January 18:49 o1_mf_1_304_c8qjp7sb_.arc
-rw - r - 1 oracle oinstall 23552 5 January 18:49 o1_mf_1_305_c8qjpsmh_.arc
-rw - r - 1 oracle oinstall 53760 5 January 18:50 o1_mf_1_306_c8qjsfqo_.arc
-rw - r - 1 oracle oinstall 14336 Jan 5 18:51 o1_mf_1_307_c8qjt9rh_.arc
-rw - r - 1 oracle oinstall 1024 5 January 18:53 o1_mf_1_309_c8qjxt4z_.arc
-rw - r - 1 oracle oinstall 110592 5 January 18:53 o1_mf_1_308_c8qjxt34_.arc
[oracle@ora12c-1 2016_01_05] $
Current main MYTS data files:
SYS @ oraprim > select file_name in dba_data_files where nom_tablespace = 'MYTS;
FILE_NAME
-------------------------------------------------------
/U01/app/Oracle/oradata/oraprim/myts01.dbf
Current data of MYTS standby files:
SYS @ orastb > select name from v$ datafile where ts #= 6;
NAME
--------------------------------------------------------------------------------
/U01/app/Oracle/oradata/orastb/myts01.dbf
/U01/app/Oracle/oradata/orastb/myts02.dbf
Gap is created:
SYS @ orastb > select the process, status, sequence # v$ managed_standby;
STATUS OF PROCESS SEQUENCE #.
--------- ------------ ----------
ARCH. CLOSING 319
ARCH. CLOSING 311
CONNECTED ARCH 0
ARCH. CLOSING 310
MRP0 WAIT_FOR_GAP 312
RFS IDLE 0
RFS IDLE 0
RFS IDLE 0
RFS IDLE 320
9 selected lines.
Backup incremental RMAN is taken elementary school.
RMAN > incremental backup of the format of database of SNA 2686263 ' / u02/bkp/%d_inc_%U.bak';
From backup 5 January 16
using the control file of the target instead of recovery catalog database
the DISC 2 channel configuration is ignored
the DISC 3 channel configuration is ignored
configuration for DISK 4 channel is ignored
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 41 type device = DISK
channel ORA_DISK_1: starting full datafile from backup set
channel ORA_DISK_1: specifying datafile (s) in the backup set
Enter a number of file datafile = 00001 name=/u01/app/oracle/oradata/oraprim/system01.dbf
Enter a number of file datafile = name=/u01/app/oracle/oradata/oraprim/sysaux01.dbf 00003
Enter a number of file datafile = name=/u01/app/oracle/oradata/oraprim/undotbs01.dbf 00004
Enter a number of file datafile = name=/u01/app/oracle/oradata/oraprim/users01.dbf 00006
Enter a number of file datafile = name=/u01/app/oracle/oradata/oraprim/myts01.dbf 00057
channel ORA_DISK_1: starting total, 1-January 5, 16
channel ORA_DISK_1: finished piece 1-January 5, 16
piece handle=/u02/bkp/ORAPRIM_inc_42qqkmaq_1_1.bak tag = TAG20160105T190016 comment = NONE
channel ORA_DISK_1: complete set of backups, time: 00:00:02
Backup finished on 5 January 16
Saved controlfile on primary:
RMAN > backup current controlfile to Eve format ' / u02/bkp/ctl.ctl';
Cancel recovery in standby mode:
SYS @ orastb > alter database recover managed standby database cancel;
Database altered.
Recover the day before by using the above backup items
RMAN > recover database noredo;
From pick up to 5 January 16
the DISC 2 channel configuration is ignored
the DISC 3 channel configuration is ignored
configuration for DISK 4 channel is ignored
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 26 type of device = DISK
channel ORA_DISK_1: from additional data file from the restore backup set
channel ORA_DISK_1: specifying datafile (s) to restore from backup set
destination for the restoration of the data file 00001: /u01/app/oracle/oradata/orastb/system01.dbf
destination for the restoration of the data file 00003: /u01/app/oracle/oradata/orastb/sysaux01.dbf
destination for the restoration of the data file 00004: /u01/app/oracle/oradata/orastb/undotbs01.dbf
destination for the restoration of the data file 00006: /u01/app/oracle/oradata/orastb/users01.dbf
destination for the restoration of the data file 00057: /u01/app/oracle/oradata/orastb/myts01.dbf
channel ORA_DISK_1: backup /u02/bkp/ORAPRIM_inc_3uqqkma0_1_1.bak piece reading
channel ORA_DISK_1: room handle=/u02/bkp/ORAPRIM_inc_3uqqkma0_1_1.bak tag = TAG20160105T190016
channel ORA_DISK_1: restored the backup part 1
channel ORA_DISK_1: restore complete, duration: 00:00:01
Finished recover to 5 January 16
Restored the controlfile and mounted the day before:
RMAN > shutdown immediate
dismounted database
Instance Oracle to close
RMAN > startup nomount
connected to the database target (not started)
Oracle instance started
Total System Global Area 939495424 bytes
Bytes of size 2295080 fixed
348130008 variable size bytes
583008256 of database buffers bytes
Redo buffers 6062080 bytes
RMAN > restore controlfile eve of ' / u02/ctl.ctl ';
From 5 January 16 restore
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 20 type of device = DISK
channel ORA_DISK_1: restore the control file
channel ORA_DISK_1: restore complete, duration: 00:00:01
output file name=/u01/app/oracle/oradata/orastb/control01.ctl
output file name=/u01/app/oracle/fast_recovery_area/orastb/control02.ctl
Finished restore at 5 January 16
RMAN > change the editing of the database;
Statement processed
output channel: ORA_DISK_1
Now the data file does not exist on the standby mode:
SYS @ orastb > alter database recover managed standby database disconnect;
Database altered.
SYS @ orastb > select the process, status, sequence # v$ managed_standby;
STATUS OF PROCESS SEQUENCE #.
--------- ------------ ----------
CONNECTED ARCH 0
CONNECTED ARCH 0
CONNECTED ARCH 0
ARCH. CLOSING 329
RFS IDLE 0
RFS IDLE 330
RFS IDLE 0
MRP0 APPLYING_LOG 330
8 selected lines.
SYS @ orastb > select name from v$ datafile where ts #= 6;
NAME
--------------------------------------------------------------------------------
/U01/app/Oracle/oradata/orastb/myts01.dbf
Hope that gives you a clear picture. You can use this to roll forward day before using the SNA roll forward Eve physical database using RMAN incremental backup | Shivananda Rao
-Jonathan Rolland
Tags: Database
Similar Questions
-
Roll forward standby with RMAN incremental backup when used DG broker
Hello
I'm about to use the process defined in the note: steps to roll forward a database ensures the RMAN incremental backup using during primaries and Eve are in the file [836986.1 ID] ASM system. I'm on 11.1.0.7.
However, it does not mention the DataGuard broker.
Did someone played this process when you use the broker.
The broker he manages properly?
Does it matter if the broker is upwards or downwards during the physical recovery of standby or replacement of control file?
Should the broker configuration be re-created?
Thank you.user11993454 wrote:
HelloI'm about to use the process defined in the note: steps to roll forward a database ensures the RMAN incremental backup using during primaries and Eve are in the file [836986.1 ID] ASM system. I'm on 11.1.0.7.
However, it does not mention the DataGuard broker.
Did someone played this process when you use the broker.
The broker he manages properly?
Does it matter if the broker is upwards or downwards during the physical recovery of standby or replacement of control file?
Should the broker configuration be re-created?Thank you.
(1) disable the broker
(2) perform the Roll forard SNA.
(3) select the broker -
How Controlfile SNA remain synchronized after moving the database with the cold backup
Hello DBAs,
I doubt that:
Every time you pass a cold backup database. We create a new controlfile with new locations of data/redologs etc.
And then we execute "create controlfile reuse...". noresetlogs...; "to create the controlfile.
After that, we will open the database as > > alter database open;
Now the question is:
We are able to open the database without clause "resetlogs.
Here, we create a new controlfile so SNA to controlfile will not be synchronized with the SCN of the datafile and redo the file.
Please let me know how the new controlfiles' SNA is synchronized with the data file and redofile and wea are able to open the database without resetlogs clause.
Oracle: 11.2.0.4
OS: Linux
If your cold backup also includes online redo logs, a RESETLOGS is not necessary.
The controlfile is created if it does not have a SNA, it reads the data file headers the YVERT database. For a cold backup, all the headers of data file are consistent. (This is also the reason why a RECOVERY is not required).
Hemant K Collette
-
Conflict with the L1 backup task backup ARCHIVELOG
DB version: 11.2.0.4
Platform: RHEL 6.3
We have a backup archivelog that starts at 22:00 and an incremental backup that starts at 23:50.
The backup archivelog usually ends at 23:00. But lately, he took more time. Sometimes, he finished only at 12:30, which is like 40minutes after the incremental backup is started. That is, backup Archivelog overlaps with the incremental backup.
One of our colleagues has proposed adding 'FILESPERSET 1' to speed up the backup archivelog. So he changed the backup archivelog script of
BACKUP FORMAT '% s_ %%t p_ manhArc_' ARCHIVELOG ALL DELETE all THE ENTRY;
TO
BACKUP FILESPERSET 1 FORMAT '% s_ %%t p_ manhArc_' ARCHIVELOG ALL DELETE all THE ENTRY;
He gave the reason was that "this will prevent channels stuck with the unreachable archivelogs.
Question1. Adds 'FILESPERSET 1' really useful in this scenario?
Question2. 'FILESPERSET 1' in the archivelog script means 1 for each archivelog backup piece. Right? This means that a lot of backup in the backup media.
The justification is not applicable.
FILESPERSET 1 would not help you here.
Each consisting of 1 ArchiveLog BackupSet would result in a very large number of BackupSets. Your controlfile would have to create a lot more locations for BackupSets.
Hemant K Collette
-
How do I reduce the data file after the moving images to another data file
All,
I did a test of simepl to see how should I reduce my data file after the transfer of the objects thereof.
I had an image in my data file USER_image, which is about 9 GB in size. I created the new data under the new tablpespace file and moved all the images in this new space of tables. So my old tablespace of image with its data file is now empty. At least there is not all user objects.
Now I tried to resize the old datafile (USER_image) to a smaller value, but I keep this error
"ORA-03297: file contains data beyond the value required to RESIZE.
The file size is 9 GB and I tried to resize to 8 GB but it still does not allow me.
Is it possible to resize a data file after moving all its purpose?
I'm something wrong or missing something?
Thanks in advance.If you old image tablespace is indeed empty (you need to run a statement against DBA_SEGMENTS to check) then you can bring it, data files included.
After this, you can create a 'new' tablespace with the old name and desired data file sizes. -
Before physical deployment standby with RMAN incremental backups.
This method is available in 10g:
http://Web.Stanford.edu/dept/ITSS/docs/Oracle/10gR2/server.102/b14239/scenarios.htm#CIHIAADC
For 11g:
http://docs.Oracle.com/CD/E11882_01/server.112/e41134/RMAN.htm#SBYDB00759
For 12 c:
http://docs.Oracle.com/database/121/BRADV/rcmadvre.htm#BRADV685
According to dosc 10 g, the scenario is simple:
1. create an incremental backup to SNA required on primary and copy it in standby mode
2 save the backup in sleep mode and perform a recovery
11 g dosc, we must recreate the standby control file and update the file names before performing the recovery.
12 c introduces the new method - recovery on network, but again, we must recreate and standby control file update.
The question is: why we must create new controlfile ensures g 11 and 12 c and can we use a simple method of 10g?
Thank you.
Hello
1 why the incremental backup application does not update standby controlfile?
-Your database pending is be retrieved using the incremental backup. This does not update the eve controlfile. Your standby controlfile completely ignores the last CNS to the primary database.
2. what happens if we leave the old standby controlfile? RFS will record new logs of the primary, but will ignore them MRP? If so, can update us standby controlfile by manually applying the following log?
-Your old standby controlfile is unaware of the last CNS to the primary database.
As Mseberg said, trying things on a test computer and you will have the answers to your questions.
Kind regards
Shivananda
-
How to set the incremental backup of level 1 to restore on a different database
Hello
I have a question what is annoys me all week.
I have 2 databases. ORCL and ORCL2. ORCL2 is an auxiliary ORCL database. ORCL my database is backup incrementaly Sunday level 0, other days level 1. Now, I would like to update my ORCL2 db every night to be synchronized with the ORCL database. Is this possible? I have Oracle Standard Edition, so I can't use Data guard. If you can help me I would be very thanful. Or if you could send me a link to some textbooks.
I have db Oracle 10.2.0.3 Standard Edition
Windows Server 2003 Standard edition
With respect,
Ivan
Hello Ivan,.
You can recover the database duplicate, once created each day with an incremental backup of the target database.
What you need here is a simple restore to another host without opening the database with resetlogs. RMAN: Restoring a backup RMAN to another node [ID 73974.1]
Thank you
-
Adjust the data in the database with the variables
Hello
For my internship, I have an assignment to read and set a database with the variables. This SQL server 2005 database contains variables of a controller. These are read and write variables. The assignment is to display the read variables and the user can adjust the variables of Scripture. The first part was "easy" because the forum contained a lot of examples of this. The second part is more difficult because the forum contains absolutely no example of this. Can I use LabVIEW 2010 and 2011, and also I downloaded the 30 day trial of the database connection tool. If it's useful, I can recommend my company to buy this package. Playback vi makes use of a UDL (Microsoft data link) connection.
So you guys my question is: is it possible to adjust the specific variables in a database using LabVIEW? And maybe you can give me a little advice on this topic...
Thanks in advance!
Roy
In SQL, the specific data are always selected with the keyword WHERE. In VI to update there is a link for options, you can for example add a constant 'WHERE id = 1457 and measure > 0.54 ".
You can ofc. also build this chain through controls, settings and other means.
If you prefer, you can use the Execute Query (under Advanced tab I think) to which you can send the complete query example "TestTable Update set name ="Zeus"where id > 14 and id.<>
/Y
-
register the database with the database Vault
Version: 11.2.0.2.0
Operating system: Solaris
Can someone tell me please how to enter Oracle Database Vault with a database from command line without using DBCA.
The doc oracle E23090-10 provides only through the DBCA Wizard. I'm having some trouble with my software x - manager, so I cannot use the DBCA Wizard and seeks to enter the vault of the database with the database by command line.
Oracle database Vault is already enabled through 'chopt enable lbac' and 'chopt enable dv. Now all I do is register with the databases on the server.
Thank you
Hi DK2010, actually I found my answer in the metalink Doc ID 803948.1
I have to run the dbca in silent mode and at the end of this doc, it's exactly what I need.
"
DBCA-silent - configureDatabase
sourceDB-
-
Creating a new database with the file exporrt
Hello
I am to create a new database with an export file.
I have the export file (exp) and the environment put in place (Oracle10g on UNIX)
Can you gimme a few guidelines and this lines that I could probably face and again to correct.
Kind regards.Hello..
Aman has already given a link, to cross.
Well, as you already have a new environment 10g put in place, create tablespaces and users, (accurate to the source database) with the script from the source database, and then import (imp) the export dump using fromuser touser parameter.
Anand
-
Trying to retrieve the RMAN backup in another data base (another physical machine
Hello!
I am trying to restore to a different machine with a different database. I created the database with the same SID, but the computer name is different from the other. All I wish to recover is the user data file and the main data file that clients use. I could not find the right way to do outside forums. Someone would be able to offer assistance?
I did an INCREMENTAL LEVEL 0 CUMULATIVE database BACKUP; on node 1 and transferred the wallet and backups from node 1 to node 2.
Any help would be appreciated! :)
Thank you!but the dbid can be different. This is the error.
You may need to restore the controfile of these backups first before you can restore files.
in this case to do that:
Start the db2 as nomount with your pfile file instance
then
RMAN target /;RMAN > RESTORE CONTROLFILE 'filename '; -"the file name is backups that you have copied the disk."
can do the
backup from the list; If the controlfile is restored then the info should be there already if not then you can make the order of catalog again recovery area.
-
Original title: IRQL NOT or LESS EQUAL (BSOD) help
Hello
I've experienced this * IRQL NOT LESS or EQUAL * problem irregularly from January 2. It happened after doing some tinkering with the registry of Windows Media Player files (but I made sure to return to the default options once I'm done and I have also provided a backup copy) since it generates random album art files and I am looking for a way to stop him. I also deleted the files Windows Media Library (wmdb). I don't know if this has nothing to do with the BSOD. This error occurred at random intervals, sometimes after opening my computer laptop it will BSOD sometimes, it won't happen after long operating hours. Hope you can help me with this.
Is attached a copy of my DMP files which you seem to demand for troubleshooting. Dump
These accidents were related to the corruption of memory (probably caused by a driver).If you are overclocking anything reset by default before running these tests.In other words STOP! If you don't know what it means that you're probably not
1-Driver Verifier (for full instructions, see our wiki here)
2-Memtest. (You can learn more about running memtest here) -
Problem with the length of a CLOB data type
Hello
In my application, I have a page with an interactive report of written blogs - on this page, you can add a new blog (text box - CLOB data type), discovered a blog or edit a blog.
There is something going wrong with the size of the blog text. I know APEX cannot accept that 32K text and I've seen the great value saving thread, but this isn't the solution to my problem.
The problem is that when I add a blog with say about 4000 characters, it is saved in the database, but the interactive report, when I click on the view or edit icons for this blog, the blog text field appears empty. For small items (< 4000 characters), there is no problem.
Anyone know why this is happening and how to fix this?
Thank you!There seems to be a bug in the calculation of the value of the element Source when the Source Type is a SQL query and the data type of the selected column is CLOB. I'll file a bug for this. For now, I have demonstrated how you can use a type of function PL/SQL source instead. Please see point P3_TEXT:
beginfor c1 in (select blog_textfrom blogwhere blog_id = :P3_BLOG_ID) loop return c1.blog_text;end loop;return null;end;
Scott
-
images don't "move with the text" correctly when I have several columns
I use 2 columns, have been inserting images in my text and chose 'move with the text' but when I have to go back and fix something, or add text over the images all move and do not stay with the text. They start on their knees and move to the other columns and will not stay with the text. In my view, this has to do with the use of columns, does anyone have any suggestions?
What version explicit pages (Pages: pages) and the Apple logo: about this Mac) operating system version are you using? There are different, a functional version of the Pages that are running on the current releases of OS X and guessing will not help you.
-
I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day? I tried to make the old default iphoto but picture still open when I plug in my iPhone?
I tried to make the old default iphoto but picture still open when I plug in my iPhone?
When the iPhone is connected and Photos opens, select iPhone in sideba of the windowr of Photos. Then, uncheck the option 'Open for this iPhone Photos' below the toolbar. Do this for all your iPhones. The hook should be unmarked for each device individually.
Maybe you are looking for
-
How do I transfer files book Epub on USB to iPad?
I have a macbook pro 2009 - worm 10.10.5 Yosemite I used the Calibre to the mobi format Epub ebook for use on the iPad 9.3.5 Read the previous solutions on this kind of transfer much suggested by e-mail to those files yourself. That's fine we have in
-
my iphone is 5s there icloud lock how can unlock it
-
I don't have my iPhone 5 and I can't get a replacement iPhone 5
Hello I lost my iPhone 5 and not only it's true I can't get a replacement of the iPhone 5, but may not be a phone with a different serial number than the iPhone 5 that I lost. Thus, not only is - that true you can never find your iPhone If you lose
-
Where can I buy Qosmio antenna adapter?
HelloTry to find the antenna qosmio adapter because I lost the original.Have looked everywhere without success.Even bought one from E - bay when it happened was not a qosmio antenna adapter.Surely, I should be able to buy one at a place that I can't
-
Hello I was interested by the Camileo H10 camcorder, it seems a good deal for the price of 180 pounds, but after doing some surfing, I came across the Digilife Z530 ([http://www.digilifeglobal.com/DDV-Z530.htm]) which seems identical. Is it just a re