Delete pending roll forward primary database journal
Hi allI'm trying to drop the standby logfiles on the primary database (database that I am setting the DG).
Members of the groups of newspaper pending exists on the file system.
Someone has deleted these files. His old configuration where the files are in the file system. They are now in ASM.
When I try to delete the logs on hold I got the following error:
SQL> alter database clear logfile group 7;
alter database clear logfile group 7
*
ERROR at line 1:
ORA-19528: redo logs being cleared may need access to files
SQL> select * from v$logfile order by 1;
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ------- -------------------------------------------------------------------------------- ---
1 ONLINE +REDO1/proj/onlinelog/group_1.256.340558657 NO
1 ONLINE +REDO2/proj/onlinelog/group_1.256.340558659 NO
2 ONLINE +REDO1/proj/onlinelog/group_2.257.340558879 NO
2 ONLINE +REDO2/proj/onlinelog/group_2.259.340558879 NO
3 ONLINE +REDO1/proj/onlinelog/group_3.258.340558707 NO
3 ONLINE +REDO2/proj/onlinelog/group_3.257.340558709 NO
4 ONLINE +REDO2/proj/onlinelog/group_4.258.340558713 NO
4 ONLINE +REDO1/proj/onlinelog/group_4.259.340558711 NO
5 ONLINE +REDO2/proj/onlinelog/group_5.260.340558965 NO
5 ONLINE +REDO1/proj/onlinelog/group_5.260.340558963 NO
6 ONLINE +REDO1/proj/onlinelog/group_6.261.340558967 NO
6 ONLINE +REDO2/proj/onlinelog/group_6.261.340558967 NO
7 STANDBY /oracle/proj/onlinelog2/redo_702.log NO
7 STANDBY /oracle/proj/onlinelog1/redo_701.log NO
8 STANDBY /oracle/proj/onlinelog2/redo_802.log NO
8 STANDBY /oracle/proj/onlinelog1/redo_801.log NO
9 STANDBY /oracle/proj/onlinelog2/redo_902.log NO
9 STANDBY /oracle/proj/onlinelog1/redo_901.log NO
10 STANDBY /oracle/proj/onlinelog1/redo_1001.log NO
10 STANDBY /oracle/proj/onlinelog2/redo_1002.log NO
20 rows selected.
SQL> select * from v$standby_log order by 1;
GROUP# DBID THREAD# SEQUENCE# BYTES USED ARC STATUS FIRST_CHANGE# FIRST_TIM LAST_CHANGE# LAST_TIME
---------- ------------ ---------- ---------- ---------- ---------- --- ---------- ------------- --------- ------------ ---------
7 UNASSIGNED 0 0 104854601 512 YES UNASSIGNED 0 0
8 UNASSIGNED 0 0 104854601 512 YES UNASSIGNED 0 0
9 UNASSIGNED 0 0 104854601 512 YES UNASSIGNED 0 0
10 UNASSIGNED 0 0 104854601 512 YES UNASSIGNED 0 0
What can I do to make it give up these reference?Any other solution instead of modify the controlfile and stop/start the database?
Thank you!!!
Hello;
Think that Oracle, the files are there, but I still have a bug on metalink where the controlfile had them again, but they were not on the file system. Can you confirm that they exist?
Meanwhile, I'm checking my notes for the Oracle number of doc.
Bug 6128242: TRY TO drop the STANDBY LOG FAILED WITH ORA-19528
So if you're Oracle 10, this could be the problem.
workaround is to re-create the controlfile without the incorrect log file. (Ugh!)
ORA-01156 when adding or deleting Redo Logs [ID 452152.1]
Best regards
mseberg
Published by: mseberg on October 31, 2011 17:09
Tags: Database
Similar Questions
-
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
-
short of space locks roll FORWARD the database
Hi all
My database RAC 11 GR 2 running on both nodes RH5.7 got locked. I tell the cause the disk space RECOVERY satiety than the execution of what the ASMCA shows that the entire roll FORWARD is used (40 GB!)
Furthermore, I try to access the database via sqlplus, I get ORA-00257 (http://ora-00257.ora-code.com/) that mentions
"The most likely cause of this message, it is that the destination device is out of space to store the redo log file.
Now is it possible that an Oracle RAC is unrecoverable, simply because he can't write newspapers? And as we cannot access, we cannot remove these logs?
Help, please920550 wrote:
Now is it possible that an Oracle RAC is unrecoverable, simply because he can't write newspapers?No, it is the opposite: Oracle instance blocked any new database entry to be recoverable.
And as we cannot access, we cannot remove these logs?
Even if archive destination is stored in ASM you can access (for example with the utility asmcmd command line interface).
What you need to do is:
1 backup archived redo logs
2. Remove archived redo logs that have been saved.For example if you use RMAN, you can try
backup archivelog all delete input;
-
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 -
passing members Journal of primary databases / DG secondary...
Hello.
I use Oracle 11.2 (Solaris) and I have a question about the redo log members.
Unfortunately, I do not have a test database that mimics the production in order to test what I have to do, otherwise I'm just do it in test and no need to ask the following question. In any case...
I found that the production database has 3 members in each redo log group knowing that there is no real valid reason to have more than 2 members per newspaper group, I want to drop one of the members of the Group of newspapers. So, my question concerns the members of journal pending. And if there is no extra step I have to take for the database pending.
For example, I have 9 groups of redo log 4 for primary and 5 for sleep.
It is ok. No problem with that. I want just to reduce the number of members of each group of 3 to 2.
(From http://psoug.org/reference/log_files.html), it seems that I just need to specify the 'stand-by' parameter in my syntax for dealing with members of journal pending.
This same action will also take place automatically on the basis of data pending?ALTER DATABASE DROP [STANDBY] LOGFILE MEMBER <logfile_member_path_and_name>;
I suppose it would be, but I just wanted to confirm.Hello again;
If the files have been deleted it too?
I'd probably, but I don't make very high on my list. If all goes well they will stay there 99% of the time and do nothing. A rainy day I would say.
Best regards
mseberg
-
Pending passage of the primary database to database
Hi Experts,
There is a database of oracle 10 g on a windows server and the database pending 1 * 0 g on another windows server *. The archivelogs in the primary database are generated on a network drive and they are applied on a regular basis of the primary database to the standby database, but now the primary database server broke down. If someone can tell me how to failover the database ensures the primary. I followed these steps but still Iam unable to move forward
on the standby server:
1 rman target sys/oracle@standby catalog rman/rman@catalog
2 recover database;
3 output
4 sqlplus sys/oracle@standby as sysdba
5 change the recovery of database managed standby database disconnect from the session;
6 alter database recover managed standby database finish;
7 change the database for validation at the grade crossing;
All records of the primary database in the backup catalog are applied with success, until no 6 but not 7 would give me an error indicating that the required media recovery. Can someone help me?
Thanks in advance...HI srp.
As u mentioned above you are primary database server crashed.
Now, you want to switch to mode ensures primary school.
Use the following commands to go to primary school
1 startup nomount
2. change the mounting base pending;
3. recover standby database managed disconnect from the session.
4 recover managed standby database finish skip standby logfile;
5 change the database for validation at the grade crossing;
6. immediate cessation
7. startingOtherwise, you need to activate the standby database using the command sequence
SQL > recover managed database finish pending;
SQL > alter database activate standby database;
SQL > stop & start.Kind regards
Praful K -
confused about groups of log roll forward pending
Hi master,
I am little confused on create redo log group for eve of the database, according to the emergency number repeat group depends on following equation.
(maximum number of logs for each thread + 1) * maximum number of threads
but I don't know where to fing threads? in fact, I would like to know about thread in depth.
How to find the current thread?
Thanks and greetings
VDAm I wrong? do logs to archive database of primary database automatically pending? is it possible to implement this feature?
his atomized via log_archive_dest_n = service =
<> If I do not switch journal will be my backup database be able to read the lkogs from the primary database?
Yes, it will transfer the log as soon as you explicitly switch or switch of implicit journal newspaper occurs.
I would like to implement and to know this feature.is there any which utility provided by oracle?
like I said its atomisee. I said that to make the journal pass after you have created the table for the primary database in order to ensure that the database enforces that archived newspaper the engagement of the main database after successful transformation.
Khurram
-
Effects of the opening of a primary database in resetlogs on the standby database
Hi all
Operating system: Solaris
DB: 11 gR 2
Can anyone throw some light below the explanation is given in case of recovery through the OPEN RESETLOGS Statement oracle documentation
If the database pending... Then... Perform these steps... Not asked to redo data beyond the new resetlogs SCN (after the start of the new branch of data recovery) Redo apply automatically takes the new branch of the roll forward. No manual intervention is required. The MRP automatically resynchronizes the database pending with the new branch of data recovery. Here is the link of the source:
Manage a database of physical standby
Kind regards
Just to give a concrete example, I did a test on one of my VM boxes. The database currently shows:
SQL > select sequence #, the journal of v status $;
SEQUENCE # STATUS
---------- ----------------
34 ACTIVE
CURRENT 35
ACTIVE 33
While on the eve, I stopped the redo apply so the standby status is:
SQL > select sequence #, used from v$ archived_log;
SEQUENCE # APPLIED
---------- ---------
YES 30
31 YES
32 YES
33 NO.
34 NO.
The database ensures in a few newspapers behind the primary.
On the primary, I moved the journal a few sequences, close, the bootable media and restored and recovered 37 sequence:
RMAN > run
2 > {}
3 > restore database;
4 > up 37 sequence;
5 > restore database;
6 > alter database open resetlogs;
{7 >}
During the open resetlogs operation, I have to tail the log of alerts on the standby database and the following output shown:
RFS [11]: identified the type of database such as 'physical' standby: customer is ARCH pid 17192
RFS [11]: new branch archives REDO: 844006029 current: 843649185
RFS [11]: Journal selected 102 for thread 1 1 dbid-204899919 branch of the 844006029 sequence
RFS [11]: new Branch (resetlogs_id) of archive REDO: before 844006029: 843649185
RFS [11]: ID of Activation of archives: current 0xf3d44942: 0xf3cf5ac3
RFS [11]: effect of primary database OPEN RESETLOGS
RFS [11]: entry of Incarnation added to Branch (resetlogs_id): 844006029 (ORCL11PS)
Fri Apr 04 14:07:39 2014
Definition of embodiment of recovery target 2
Fri Apr 04 14:07:39 2014
Archived journal 21 additional for each sequence 1 1 0xf3d44942 dest ID thread entry 1:
So as you can see, the log shows the standby detects the resetlogs on the primary operation and the new branch of the roll forward and received the next archivelog with sequence 1.
Audit on the eve, it shows the status following the archivelogs:
SEQUENCE # APPLIED
---------- ---------
31 YES
32 YES
33 NO.
34 NO.
35 NO.
36 NO.
37 NO.
38 NO.
1 NO.
2 NO.
And after restart the managed recovery process, it now shows:
SEQUENCE # APPLIED
---------- ---------
31 YES
YES 30
YES 19
YES 33
34 YES
35 YES
YES 36
37 NO.
38 NO.
1 YES
2 YES
Archivelogs with sequence 37 and 38 were not implemented because of the CAMILLE on the main sequence until (but not including!) 37 and then properly applied the next archivelogs of the new branch of the roll forward, with sequence 1 and 2.
-
logfile missing watch on the primary database
In a 11.2.0.4 database, we have configured Data Guard, so they created pending log files, but it has been deleted in ASM + accidentally.
Thus, research in the database primary, the newspaper observed log pending files, but is not in ASM +.
In the alert log has not been recorded event.
I can do the recreation of the eve logfiles?
What role can have on the primary database?
Our configuration:
BECAUSE with 4 cases
--
logonline 5 groups for example
each group of logonline with 2 members
--
6 standby of the group e.g.
each group watches with 2 members
Total 48 asm file missing
Select *-Group #, Member
v $ logfile where type = "STANDBY".
order by group #.
GROUP # STATUS TYPE MEMBER IS_RECOVERY_DEST_FILE
No. 51 +DATA_EXA/prep/onlinelog/group_51.1613.804140169 EVE
No. 51 +RECO_EXA/prep/onlinelog/group_51.2918.804140175 EVE
No. 52 +DATA_EXA/prep/onlinelog/group_52.1614.804140479 EVE
No. 52 +RECO_EXA/prep/onlinelog/group_52.4182.804140485 EVE
....
.....
74 No. +DATA_EXA/prep/onlinelog/group_74.972.875418965 day BEFORE 74 No. +RECO_EXA/prep/onlinelog/group_74.14330.875418971 day BEFORE ASMCMD >
ASMCMD > ls-l +DATA_EXA/prep/onlinelog/group_74.972.875418965
ASMCMD-8002: entry 'group_74.972.875418965' does not exist in the directory ' + prep/DATA_EXA/onlinelog /'
ASMCMD >
ASMCMD >
Redologs Eve will be active when the database is in the role of Eve, so you can drop the watch group redologfile missing for the thread and add it again.
You have lost all the groups newspaper waiting for redo for all threads?
On primary, you can drop all odds redolog groups because they will be unassigned State on the standby database make sure the group is unassigned status before falling
Select Group #, THREAD #, STATUS from v$ standby_log;
-
Hello
My oracle database is 11.2.0.2 RDBMS RAC on RHEL 5. 6
We have recently established physics of the standby database. How to remove archive logs waiting for physical standby mode?Hello;
There is a little different to do this. I would consider these notes:
How to ensure that RMAN is NOT delete archived logs that have not yet shipped to standby [394261.1 ID]
RMAN removes records of logs on the primary database not applied pending physical [ID 1324759.1]
Configure RMAN to purge the archivelogs after application on hold [728053.1 ID]
You can use an RMAN script to do this:
echo "Starting RMAN..." $ORACLE_HOME/bin/rman target / catalog user/password@rcatalog << EOF delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-8'; exit EOF
Best regards
mseberg
-
Hi all
I'm working on oracle database enterprise edition 10.2.0.4.I have created a database.the physical standby of the primary database name is prim and the standby database name Eve.He has 100 files of newspapers to archive are generating each size is 300 MB per day. I applied archive log political removal of watch on the primary database. So all the newspaper shifted and applied pending archive are deleted from primary. But my concern is the archive logs staggered into sleep mode. The archivelogs in the standby server must be deleted.how that it can be removed. Help, pleaseuse RMAN to this effect, as you do in primaries.
It will make a backup if you need and delete the archivelogs.
-
Accessibility of the previous backup Image of RMAN copy after roll forward with the additional days
Hi all
I have these 2 questions related to RMAN Image backups. Please suggest the best approaches...
We are in publishing Standard of Oracle 11.2.0.3 database on instances of RAC ASM on Windows 2008 and want to see the feasibility of using Copies of RMAN images for our databases.
Have a question about the availability of backups for restoration in a scenario explained below:
1ST QUARTER)
To get copies of the Image which are rolled to the next incremental backup. Can we still restore/recovery to earlier date than the Image backup before rolls? If not, please suggest
What is the best way to accomplish this task if we choose RMAN COPY of IMAGE as our backup strategy.
Example:
Log archiving is enabled.
Sunday evening: full level 0 backup copy Image
Monday night: 1) level 1 incremental Image copy backup and Roll-forward/apply the incremental backup for the full backup from Sunday
(2) backup of files to archive log after the full backup from Sunday.
Tuesday evening: 1) level 1 incremental Image copy backup and Roll-forward/apply the incremental backup for roll Monday transferred (full) backup.
(2) backup of files to archive log after incremental backup from Monday.
Wednesday evening: 1) level 1 incremental Image copy backup and Roll-forward/apply the incremental backup to roll Tuesday transferred (full) backup.
(2) backup of files to archive log after incremental backup on Tuesday.
Can we restore and recover the data until Tuesday morning 11:00 even if our full backups are rolled transferred by the application of incremental backups. Please suggest
What is the best way to accomplish this task if we choose RMAN COPY of IMAGE as our backup strategy.
Q2)
Q2.a) Scenario 2: with above politics of backup in the 1st quarter.
If I intend to use the copy of current Image backup on WEDNESDAY NIGHT for the recovery and restoration on-site. understand that
We're losing backup of forwded for the roll of Wednesday night. Is it possible to take a backup/backup copy of this Wednesday night before being used for on-site recovery, so that we can use it
for all future restorations.
Q2.b)
If we are unable to take backup of the night't Wednesday backup before being used for the recovery on the spot. We can always access backup Image roll passed Tuesday night? If so, can
I take a new incremental Image copy backup Thursday night and roll forward/apply to copy backup Image Tuesday night. Please suggest the best approach to have accessible backups for each night?
Thank you
Hello
I suggest that postpone differentials apply for a week as says Hemant.
for example:
grab the copy of database with tag = "incremental_update" until ' SYSDATE-7 "; ". "
1 extra strength to recover from backup with tag = "incremental_update" database;
Talip Hakan Öztürk
-
No index on the primary database. Need help with "COUNT OFF"; option
11 GR 2 11.2.0.3 under linux
Hi everyone,.
It's an honor to be with you guys.
I have a big question here and I am unable to decide on a permanent solution.
We have a primary database that is configured to have a logical expectation.
The logic of the day before was not built by me. But I'm now support...
So as the title suggests, there is NO primary index / unique + not null on a large number of tables in the database of emergency primary/logic. But the application logic guarantees uniqueness values rather than null.
Here is where the problem starts.
Guys request DO NOT want us to create an index on the primary database.
According to my understanding, because the database lack of clues, the apply SQL must do a full table scan whenever it changes / remove data. It is a very expensive process and consumes a lot of time. This takes hours together to apply a minute with a value of newspapers on the logic of the eve... A huge lag is created during the hours and is not acceptable.
So as I told you earlier, the guys request do not want an index on the tables not supported.
They use the database pending logic exclusively for information purposes and it's like production for them...
Let me give an overview...According to the document on the creation of the logic of the day before for 11.2 as below
http://docs.Oracle.com/CD/E11882_01/server.112/e41134/create_ls.htm#SBYDB4730
Step 1 to find tables without identifying unique logic in the primary database.
Query the
DBA_LOGSTDBY_NOT_UNIQUE
view to display a list of tables SQL may not apply be able to uniquely identify. For example:SQL> SELECT OWNER, TABLE_NAME FROM DBA_LOGSTDBY_NOT_UNIQUE
2> WHERE (OWNER, TABLE_NAME) NOT IN
3> (SELECT DISTINCT OWNER, TABLE_NAME FROM DBA_LOGSTDBY_UNSUPPORTED)
4> AND BAD_COLUMN = 'Y';
The above query has 1040 tables in a particular schema. All the these have no index is not null primary / unique.
Now according to the step 2 as below, we have an option to add a disabled RELY primary key constraint.Step 2 Add a disabled RELY primary key constraint.
If your application provides the rows in a table are unique, you can create a primary key disabled
RELY
constraint on the table. This avoids the overhead of maintaining a primary key on the primary database.Can someone explain what this RELY constraint is disabled and how to function and help please?
I have a few questions about the constraint to RELY.(1) change current plans of optimizer on primary for the execution price?
(2) can help to boost the performance of SQL apply without creating index on the logical standby database?
(3) it will change current plans of optimizer logical pending for the SQLs running?
What are the options that I need to increase the performance and table scan complete engine AVOID SQL apply on the logic of the day before?
Thanks a ton for reading my post.
Kind regardsAbhishek
In fact, I've implemented a key primary rely disabled on primary and unique index on the logic of the previous day.
The logic of Eve runs lightning fast now
-
Commit &; roll forward
updates a row in the table
Has not issued validation.
Leave for a day
Querying the table after a day.
According to Arup nanda blog
http://Arup.blogspot.in/2010/12/100-things-you-probably-didn ' t - know.html
We will see the updated record if transaction not committed.
Redo log won't marker validation, so during recovery, roll forward coming.
What happens after 2 days if I bounce the DB?
Redolog have been archived.
Roll forward is still happening?
Oracle is also the newspapers archived when starting?
1db95704-3e2e-4907-9e49-b5c3f98b9612 wrote:
Finally redo everything... Cancellation block is again a datablock. Have to redo change vector describing the change to the block to cancel ---> there is a redo to undo.
Unless you have a redo to undo, you can not recover.
Repeat the same answer doesn't mean it's good
Evil and lack of understanding.
We don't have to talk about media recovery here. If the State t1 point when a data block is A and after awhile you records updated in this block of data as a result by the time point t2 data block state guess B but you commit this transaction. In this case, you must redo vectors of change that represents the process of changes in block A-> B. But this modified state block in the buffer cache and modify vector stored in the online redo log. If you currently run SHUTDOWN ABORT and then in the buffer of data in the cache will be lost in such situation need again to the application of the data files from online newspapers to the data files to the construction of the last data block (B) State, but after the database instance open it will restore by using undo (she also rebuild by redo). But after time t2 here arrive checkpoint (or switching of newspaper) then the State of the last data block (B) actually in the data file must therefore not redo recovery of this transaction.
-
move the primary database files to another location
Hi all
I move the files of my primary database to another location on the same server, but on a different drive (from f: to G :) with rename comand but file name will be the same, after you have moved the files what step I need to perfom on standby DB will have on my database pending?)This doc is everything after you rename the primary file, I'm not rename all the files I need to just move file from one place to another without changing the file name.
I hope you know how to move files from one place to the other on the primary database. It's not just copying the files from one disk to another and then to go to the top of your database.
You rename your data files or copy it to another location, how the controlfile to know you have copied/renamed to a different location?
I guess you 1 to ask the question of how to move files to a different location in primary education and then move on standby.
Steps to follow:
1 Hope you brought your primary database.
2 copy the datafiels to one disk to another.
3. attach the primary database.
4 rename all data files that you moved to this control file would know the changes.
SQL > alter rename file 'G:\oracle\user01.dbf' to 'F:\oracle\user01.dbf ';
5. subsequently open the database.
Refer this to move data files from one place to another http://www.orafaq.com/wiki/Move_datafile_to_different_location, http://www.adp-gmbh.ch/ora/admin/move_datafiles.htmlon autonomy in standby:
1 cancel the MRP
2. change the db_file_name_convert to point to «F:\»... »
3. Mount the backup database
4. start the MRPHope that these steps are clear.
Maybe you are looking for
-
The best way to delete multiple messages from Inbox?
I left tens of hundreds, 1000s?, emails in my sent and Inbox. And I want to remove them. Is there a quicker way then one by one? I tried to hold the CTRL key and highlighting several emails without success. Please help an elderly person... Thank you,
-
Satellite M50-A-110 does not recognize the new SSD?
Hello I bought the M50-A-110 model and tried to replace the HARD drive by a Pro 840 Samsung SSD. The laptop does not recognize the SSD drive, so I sent him to the local Toshiba service for inspection. They discovered that the laptop does not recogniz
-
HP 4250n - white &; red screen
Hello I have a HP 4250n Laserjet black and white. Recently, when I turned it on I got a white screen and the attention of light red. I turn off and on again and everything would be good again for a good few days. However he would come after a power o
-
Windows 7 WMP 12 a .asx file won't play audio stream
I see this problem anywhere on the Internet but no solutions. On my Windows 7 machine, I want to read a file .asx on a particular web site that plays very well on my XP machine. But in Windows 7 (64-bit), I get the error C00D11B1. The .asx file point
-
HIII everyone! This is my 1 post in the Blackberry Community Forums. I have the Blackberry Torch, but I'm not able to take its benefits, I mean what is the meaning of buying such an expensive appliance. So, I'm looking for an application through whic