Clearing Online redo logs on the physical standby of the target
HelloVersion 11202.
Primer on computer a.
Watch on computer b.
Later note: 11.2 Data Guard physical standby failover best practices using SQL * Plus [1304939.1 ID].
Online redo logs on the target physical standby need to be cleared before that standby database can become a primary database.
And later:
On the target physical standby run the following query to determine if the online redo logs have not been cleared...
(1) I did not understand where I have to run the query. On computer A, computer B or?2)
Online redo logs on the target physical standby need to be CLEARED
Which means that it must be DELETED? Does transaction could be lost by running the command of compensation?Thank you
Hello again;
I would NOT use a script. The reason is that you are not sure what "switchover_status" will be returned by the database of v$.
Oracle a broker data available for a quick pass, but I'm from the old school and I want to see how thing works in SQL for awhile first.
Best regards
mseberg
Tags: Database
Similar Questions
-
Will be online Redo Logs to sleep never used?
Version: 11 GR 2
OS: Oracle Linux 6.5
Pending a physical DB, newspapers online redo will be ever written because the author of newspaper on the standby site will be inactive. Right?
In the DB in waiting, only forward Redo logs will be written to by RFS. Right?
Pending a physical DB, newspapers online redo will be ever written because the author of newspaper on the standby site will be inactive. Right?
ORL will be used when the database starts to behave like a primary database and LGWR writes the data to the newspaper for the ORL buffer again.
They are not used while the database behaves like a physical standby.
In the DB in waiting, only forward Redo logs will be written to by RFS. Right?
Yes, the process RFS writes that data to the standby redo redo logs on the standby database.
Just for your reference https://docs.oracle.com/cd/B19306_01/server.102/b14239/log_apply.htm#i1022881
HTH
-Jonathan Rolland
-
Hi all
I have a question about the online redo logs.
If the database is out of service information on recovery online logs will be lost?
What happens if the entire database server is low because of the blackout? online redo logs is deleted? taking into account the fact that their records were not damaged.
So my question is: the online redo logs fade in all cases? on the database shutdown or restart the database server?
Kind regardsI have a question about the online redo logs.
If the database is out of service information on recovery online logs will be lost?NO.
What happens if the entire database server is low because of the blackout? online redo logs is deleted? taking into account the fact that their records were not damaged.
NO.So my question is: the online redo logs fade in all cases? on the database shutdown or restart the database server?
They fade is an administrator issues the command
change the database to clear log file group;They are your life insurance, so Oracle erase.
-----------
Sybrand Bakker
Senior Oracle DBA -
Separate ASM diskgroup Online redo logs
Version: 11.2.0.3
Platform: Solaris 10
One of the guys support Hitachi suggested to create a group of separate drives for the online redo logs. His reasoning was that ORLs was writing only the files and it would be better to put into a group of separate disk.
What do you think guys?
Tom wrote:
Version: 11.2.0.3
Platform: Solaris 10
One of the guys support Hitachi suggested to create a group of separate drives for the online redo logs. His reasoning was that ORLs was writing only the files and it would be better to put into a group of separate disk.
What do you think guys?
Well, one additional DG would require additional disks. Hmm. And who is the seller who would be purchased these discs?
I guess that in a situation of extreme performance, there may be some merit in placing redo it online on a separate ASM disk group so that the underlying disks could be managed in a higher priority of the Hitachi (?) SAN. But that would only be justified if written again online has been the major bottleneck in your system.
-
Cold backup with online redo logs
I'm working on 10G in AIX for a single instance
It's just a general db backup & restore issue, but I have something confused.
I'll take a cold backup with my database ARCHIVELOG.
No wonder why make a backup of cold because it's a test database that can suffer from loss of data and the time during backup.
I read some guides. They all mentioned to back up all the data files and control files.
When restoring I copy all saved data files and control files to the default location.
Then mount boot;
Is the last step before opening the database recover database until cancel;
For the acknowledgement, I do the database recovery command, because again the online newspapers were not saved, so we must recover in order to reset the redo logs.
For my question, I would be in a position of order recovery of database, then directly the database starts, if I backed up online redo logs and copy the default location when restoring?
However, I have read a lot of documents that mentions that it is not proposed to backup online redo logs. Is it simply the case that ONLY applied in the backup hot? Do you think all that for my case, cold backup online redo logs is recommended?
Thank you allHello
read the response of Hemant ==> Re: restoration of noarchive
Anand
-
Cannot archive archive a redo log because the output device is full
Dear Experts,
When I'm connected to the MA of my DB 11 g R2. I found the following:
- State of the database Instance : down
- Details
The instance has been terminated by a database due to a deadly internal disease process, or a critical background process was killed by the user.
Archive is unable to archive a redo log because the output device is full or inaccessible.
- Connection of the agent to the Instance
Status: Failed
Details: ORA-01034: ORACLE not available
Thank you in advance for any help you provide
Best regardsyou do not have enough space on your disk,
You must remove all archivelog/backup obsolete/expired:
. make a cross-checking first:
RMAN > obsolete report.
RMAN > remove obsolete;
RMAN > list expired backup;
RMAN > list expired archivelog all;
RMAN > delete expired backup;
RMAN > delete all. expired archivelog
or
increase the space in your disk.To know how many days/backups are in you, the RETENTION POLICY, checking:
RMAN > show all.You can change with the least number of days for example.
HTH
-
can u we take online redo log backups using RMAN... can you guide me
can u we take online redo logs using RMAN backups... in 1ogRMAN does not backup online redo logs.
-
Standby Redo logs and the Directory Structure in the Backup Site
Hi guru
I just want to confirm, I know that if the directory structure is different, I need to talk about these 2 settings in the file pfile
on the main site:
DB_CONVERT_DATAFILE = 'sleep', 'primary '.
LOG_CONVERT_DATAFILE = 'sleep', 'primary '.
On the secondary Site:
DB_CONVERT_DATAFILE = 'primary', 'sleep '.
LOG_CONVERT_DATAFILE = 'primary', 'sleep '.
But I want to confirm this weather I have to deliver the full path of the directory in the two paramtere above:
as:
DB_CONVERT_DATAFILE = ' / u01/oracle/app/oracle/oradata/sleep ', ' / u01/oracle/app/oracle/oradata/primary.
LOG_CONVERT_DATAFILE = ' / u01/oracle/app/oracle/oradata/sleep ', ' / u01/oracle/app/oracle/oradata/primary.
Second Confusion: -.
After that transfer standby Redo logs creates primary and made to sleep on the foregoing, mentioned the directory structure and after restoring the alongwith primary db backup, that ensures the control file will not affect the journal of physics again placed watch on the above mentioned location.
Thanks in advance for your help
vk82 wrote:
In fact, I create the day before by using the RMAN Duplicate command. but where I am confused is the point if I transfer the backup that i taken the pri on the C:\backup_files path. and after that, I transfer the backups to the waiting on C:\backup_files. After that when I restore it will create datafile and other stuff in another directory I mentioned using DB_FILE_NAME_CONVERT as LOG_FILE_NAME_CONVERT. I think Yes but need your advice during the same period.
Hello
Yes, files should be created under the directory mentioned in the path of the parameters 'db_file_name_convert' and 'log_file_name_convert.
Kind regards
Shivananda -
11 GR 2 on RHEL 6.2
4 GB is our size of Redo Log online.
SQL > select bytes/1024/1024/1024 GB of log v$.
GB
----------
4
4
4
4
But the archive logs are 3.55 GB in size instead of 4 GB. Some of the archivelogs that are smaller than 3.55 below must be caused by
Archive log backup RMAN offers jobs at 10:00, 16:00 and 22:00 that initiates log switching (I guess)
SQL > select (blocks * block_size/1024/1024/1024) GB of v$ archived_log where status = 'A ';
GB
----------
3.55978966
3.31046581
3.55826092
3.55963707
1.39474106
3.561553
3.55736685
3.55881786
.135155678
3.55546999
.054887295
1.88027525
.078295708
1.97425985
3.55703735
3.55765438
.421986103
3.55839968
< snipped >
It has something to do with the parameter FAST_START_MTTR_TARGET ? It is set to zero in this PB anyway.
SQL > show parameter mtt
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
fast_start_mttr_target integer 0
SQL >
He could carry on public discussions and private discussions as Jonathan Lewis points out in the other discussion that Mihael provides a link to.
It could concern the parameter archive_lag_target
It could be the result of the BACKUP of RMAN commands
It may be a programmed script / who commands ALTER SYSTEM ARCHIVE LOG of employment issues.
Oracle can create an archivelog that is smaller than the redo log, if it isn't a switch or command before archive the redo log is full.
Hemant K Collette
-
Redo log entries to the online redo log files
Hello
I'm a little confused about the redo log entries.
I learned that LGWR writes redo log entries in the SGA, in redo log files in the following situation:
-3 seconds after the last validation
-redo log buffer has 1 MB
-redo log buffer data 1/3
When I take a transaction and if I change the wrong data, I have to cancel this transaction BUT the right now,
What happens if the LGWR writes redo log disk entries?
Is the bad transaction committed at all times?
2791011 wrote:
Hello
I'm a little confused about the redo log entries.
I learned that LGWR writes redo log entries in the SGA, in redo log files in the following situation:
-3 seconds after the last validation
-redo log buffer has 1 MB
-redo log buffer data 1/3
When I take a transaction and if I change erroneous data, I have to cancel this transaction at this time, BUT
What happens if the LGWR writes redo log disk entries?
Is the bad transaction committed at all times?
DML changes are "permanent" after that VALIDATION is issued.
When any COMMIT is issued, then changes can be undone.
-
Invalid state online redo log on backup database
Hi all
I'm new here with a little problem with Oracle Dataguard.
After the double, redo log files and log files online pending
are equal in major databases and relief.
But now, in the database of relief, some redologs online are missing.
So, I created files of online journals on the standby database.
But the State is not valid:
the newspaper of the alerts:GROUP# STATUS TYPE MEMBER IS_ ---------- ------- ------- -------------------------------------------------------------------------------- --- 1 INVALID ONLINE +DATA/PROJ_STD/onlinelog/group_1.392.123263579 NO 1 ONLINE +FRA/PROJ_STD/onlinelog/group_1.948.123234493 YES 2 ONLINE +FRA/PROJ_STD/onlinelog/group_2.852.123234495 YES 2 INVALID ONLINE +DATA/PROJ_STD/onlinelog/group_2.393.123263607 NO 3 ONLINE +FRA/PROJ_STD/onlinelog/group_3.946.123234495 YES 3 INVALID ONLINE +DATA/PROJ_STD/onlinelog/group_3.394.123263613 NO 4 INVALID ONLINE +DATA/PROJ_STD/onlinelog/group_4.395.123263615 NO 4 ONLINE +FRA/PROJ_STD/onlinelog/group_4.933.123234497 YES 5 STANDBY +FRA/PROJ_STD/onlinelog/group_5.989.123262059 NO 5 STANDBY +DATA/PROJ_STD/onlinelog/group_5.387.123262055 NO 6 STANDBY +FRA/PROJ_STD/onlinelog/group_6.990.123262075 NO 6 STANDBY +DATA/PROJ_STD/onlinelog/group_6.388.123262073 NO 7 STANDBY +DATA/PROJ_STD/onlinelog/group_7.389.123262081 NO 7 STANDBY +FRA/PROJ_STD/onlinelog/group_7.991.123262085 NO 8 STANDBY +DATA/PROJ_STD/onlinelog/group_8.390.123262091 NO 8 STANDBY +FRA/PROJ_STD/onlinelog/group_8.992.123262093 NO 9 STANDBY +DATA/PROJ_STD/onlinelog/group_9.391.123262103 NO 9 STANDBY +FRA/PROJ_STD/onlinelog/group_9.993.123262105 NO
Is this correct? What's wrong? What I can do to solve this problem and all newspapers in restoration online in the two databases are equal?ORA-00313: open failed for members of log group 1 of thread 1 ORA-00313: open failed for members of log group 2 of thread 1 ORA-00313: open failed for members of log group 3 of thread 1 ORA-00313: open failed for members of log group 4 of thread 1
Thank you very much!!!Hello;
Check out this note first:
ORA-00313, ORA-00312, ORA-27037 Standby Database [601835.1 ID]
OR
On implementing standby
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
And then, for each group of newspaper
change the database group claire logfile 1;
After this verification, the v$ log view to confirm the size and status.
Also check v$ standby_log and make sure that you have the day before newspapers too.
Finally, check the alerts log and make sure that no more errors have occurred after that you have disabled the logfile group.
Best regards
mseberg
Published by: mseberg on November 3, 2011 18:41
-
How to replace the members of the Group missing redo log after the failure of a support
Hello
I'm testing a disk failure scenario. I had recovery multiplexes on three sites (Windows drive letters) logs; one of the three locations also contained the data files. I deleted the Windows player that contained data files and saw a restoring with RMAN. All is well except that redo log members who are found on the occult Windows disk are of course still missing; the database opens, etc., but puts messages like this in the ALERT.log:
ORA-00321: log thread 2 1, cannot update log file header
ORA-00312: wire 2 1 online journal: ' F:\APP\NGORA12CR2SRV\ORADATA\ORATEST5\ONLINELOG\O1_MF_2_BW4B5MY0_. JOURNAL"What is the 'right' way to replace missing limbs? Just get all the new groups of newspapers with new members on all three discs? Carefully copy the LOG files representing missing members of one of the other sites? I add new members at this location and remove existing members (missing)?
Is how important it?
Thank you!
Martin
See 'Recover after losing a member of a group of Redo Logs online multiplexed'
at http://docs.oracle.com/cd/E11882_01/backup.112/e10642/osadvsce.htm#sthref2205
Hemant K Collette
-
Can redundancy of the OCR - we have OCR mirror with Redo logs in the diskgroup REDO01?
Hello
I have 2 node Oracle 11 GR 2 (11.2.0.3) RAC on AIX 6.1. Currently there is only an OCR and a VD residing in OCRVD diskgroup what redundancy as external.
# File group universal name Id disk STATE file
-- ----- ----------------- --------- ---------
1. online a27d6a5df2db4f31bf0c9c9d31870b1f (/ dev/rhdisk11) [OCRVD]
Located at 1 vote (s) disk.
$ ocrcheck
Status of the Oracle Cluster registry is:
Version: 3
Total space (in kilobytes): 262120
Space (in kilobytes) used: 3152
Amount of available space (KB): 258968
ID: 899322289
File name of device /: + OCRVD
Verifying the integrity of file/device succeeded
File/device not configured
File/device not configured
File/device not configured
File/device not configured
Checking cluster registry integrity succeeded
Logical corruption control bypassed due to the non-privilegie user
OCRVD Diskgroup is created using 5-disc size 1 G with RAID 1.
1. is it possible that I have OCR and VD multiplex in the same diskgroup?
2. If it is not possible, then I would add OCR and VD in other starts (Eg: REDO01 and REDO02 - so much for Redo logs)?
Published by: Azam on 20 may 2013 14:46Azam says:
HelloI have 2 node Oracle 11 GR 2 (11.2.0.3) RAC on AIX 6.1. Currently there is only an OCR and a VD residing in OCRVD diskgroup what redundancy as external.
# File group universal name Id disk STATE file
-- ----- ----------------- --------- ---------
1. online a27d6a5df2db4f31bf0c9c9d31870b1f (/ dev/rhdisk11) [OCRVD]
Located at 1 vote (s) disk.$ ocrcheck
Status of the Oracle Cluster registry is:
Version: 3
Total space (in kilobytes): 262120
Space (in kilobytes) used: 3152
Amount of available space (KB): 258968
ID: 899322289
File name of device /: + OCRVD
Verifying the integrity of file/device succeededFile/device not configured
File/device not configured
File/device not configured
File/device not configured
Checking cluster registry integrity succeeded
Logical corruption control bypassed due to the non-privilegie user
OCRVD Diskgroup is created using 5-disc size 1 G with RAID 1.
1. is it possible that I have OCR and VD multiplex in the same diskgroup?
No, this isn't posible
2. If it is not possible, then I would add OCR and VD in other starts (Eg: REDO01 and REDO02 - so much for Redo logs)?
Yes you can add other starts. As root, run the following command to add a location of OCR or Oracle ASM
ocrconfig -add +REDO01 ocrconfig -add +REDO02
As you know on level between discs ASM ASM mirroring that is contains ASM DISKGROUP.
Concerning
Mr. Mahir Quluzade -
datafiles and redo logs on the same drive
Hi guys,.
http://docs.Oracle.com/CD/E11882_01/server.112/e25494/onlineredo002.htm#i1306224
>
Data files should also be placed on different disks of redo log files to reduce contention in writing of the data blocks and redo records.
>
I really think if he actually any challenge when the first of all oracle can only writes files 1 redo log at a time.
http://docs.Oracle.com/CD/E11882_01/server.112/e25494/onlineredo001.htm
>
Database only Oracle uses redo log files at the same time to store redo records written since the restore log buffer by progression. Log roll forward LGWR is preparing actively to is called the log during recovery.
>
If the process flow, I got after reading the chapters is
When LGWR fills a log file of redo (roll forward records) then there will be a log switch + control points where writing for data blocks occur. There seems to be a flow series rather than a simultaneous sort of flow. So I don't really understand it when he speaks of contention will take place when records of data and files written redo which is the redo log file are on the same disks.
Just to confirm with you guys, whenever there is a switch of newspaper one point of control occurs too right.
http://docs.Oracle.com/CD/E11882_01/server.112/e25494/onlineredo002.htm? You can search checkpoint to access the section she made mention of this documentation.Think about this:
Restore means to keep the information around in case you need to re-do (recovery or standby mode, i.e. the continuous collection). Updates as you do in a broad sense will be so potentially being twice, once for the data files and once to do it again. I'm sure you understand that the data is written in memory, and then later to the data by the writer of the db files, while there could be many more group of writing data, or they may even be long delayed. In addition, the data files are read at random, so you can't really think again in series compared to the data. Do it again is series, archiving is set, but the data is random, and random how depends on how your system is used.
So that means all the type of reads and writes per redo and archive is fundamentally different from data and cancel. In the first case, you want to be able to breath out as I/O that you can, for the latter, you want to be able to randomly reading or writing at different times, with Oracle being smart enough to do a bit of it in memory and optimistic enough to make assumptions on when to do things and quite lazy for not doing everything right. Roll forward is critical.
A while ago, someone pointed out that the e/s modern buffered in memory, do not really worry about this, because all the work required to set up and maintain it after spending records, fees are not much better than striping and mirroring everything (you can google SAMI). This is true to a point, and we can debate endlessly about RAID types and their effects on performance and how their buffering makes [url http://www.baarf.com/] useless BAARF. But the real debate is, where is the point that you should use separate to redo and data devices? In the real world, we often receive a standard hardware configuration, which works very well until it's not. A disk or controller will puff in a RAID-5 can happen "is not" real quick.
You should probably take two thoughts:
The docs are pretty General, and some old tips do not apply, may have transformed into myth or perhaps too general to be meaningful.
There is always something in the db, and the more things underway, less you can make generalizations about the serialization.
-
Many redo logs switches the line seconds on an irregular basis
Hello
We are 11 GR 2 RAC. We migrated a DB 10 g that used to pass on every 20-25 minutes all the
While doing about 160 to 200 GB per day; I noticed this newly migrated DB now show
pics of quick saves switches from time to time, for example yesterday (excerpt):
SQL > select thread #, FIRST_TIME from v$ log_history by 2;
...
1 20140524 10:19.36
1 20140524 11:24.34
2 20140524 11:24.35
2 20140524 12:00.02
1 20140524 12:00.03
1 20140524 12:00.05
2 20140524 12:00.08
1 20140524 12:00.14
1 20140524 13:06.19
2 20140524 13:09.44
2 20140524 14:15.46
1 20140524 15:00.08
2 20140524 15:00.50
2 20140524 15:53.56
2 20140524 16:45.37
1 20140524 16:45.39
2 20140524 17:43.26Ignore lines because of lunch at this time that I start a backup of archive logs, but to explain
switches 11:24.34 et.35 for example, or 15:00.08 et.50, then at 16:45, where
Do you think I should study? I have no reason why in these moments my DB suddenly
give 3 GB of Oder, before you wait another hour to do this (e.g. between 16:45 and 17:43)...
Everything about the fact that we are on CARS now?
Thank you very much.
Kind regards
SEB
Nothing to worry about.
Each node in a RAC has it of own redo logs and performs his own logswitches.
If you look for each thread (1 and 2 that correspond to the node) itself, everything is ok.
Maybe you are looking for
-
Need Win XP drivers for Satellite L30-10 t
Hello I need drivers for my laptop Toshiba Satellite L30 - 10 t 32-bit for Win Xp OS and Toshiba Satellite L300-19F 64-bit for Win Xp... Web page there in no such drivers on Toshiba... Where can I find them? Help, please... Martin
-
CR1000 Campbell communicate to LabView 8.6
Dear OR engineer. I want to read the data from a Campbell CR1000 datalogger, and I found this topic (link at the bottom) is useful and perhaps the solution I want. But I can't read Spanish. Can someone help me in English? Thanks and regards, http:
-
Page won't load on some sites, tried different browsers
As stated... When I go to certain sites, the signature is never a problem, but when I choose a page to load all that I get is a blank white page loading. This happens with the same sites in different browsers. I am running xp pro SP3... and have all
-
Cannot start device - ASDM question Manager
Hello I have recently updated our router to spare ASA 5510 to version 9.1 (3) with image ASDM Version 7.1 (5) 100. The customer I try to run the ASDM launcher on Windows 7 x 64 is the latest version of Java (updated 7-5). I am able to do at the hand
-
BlackBerry Smartphones IronPlane HD
I paid for and downloaded IronPlane HD and it messed up during installation and now it says its installed UN and does not give me the option to install... Any ideas on how to fix