Archivelogs are deleted on Primary side
Hi,
In oracle 10g and 11g version dataguard concept if archivelog files are deleted on primary side, before transferring to standby side, then what happens on the standby side. How we can recover this data on standby database side.
Thank you!
899329 wrote:
Hi,
In oracle 10g and 11g version dataguard concept if archivelog files are deleted on primary side, before transferring to standby side, then what happens on the standby side. How we can recover this data on standby database side.
you re-clone the Primary to the Standby
Similar Messages
-
Cisco AQM 8.5 not recording : wav files are deleted from client side
Daer Networkers,
We do have Cisco AQM 8.5 SR2 ES1 installed with UCCX 8.5
The issue is that when accessing the Web interface of AQM and try to look for calls, I can't find any one.
When checking the client side, I can see that the call are being recorded : The FROM and TO files are there. But once the call is terminated, the wav file appear for some seconds and then it dissappears asi fi it's deleted.
The wav files are not in the server too;
I don't know what is the issue. Can you please help ?
Thanks in advance.Hi,
This issue was resolved by doing a repair to the QM Base services, then run postinstall as if it was run for the first once.
The Proxy Gateway program was missing for some reason. After doing the repair the issue was resovled and calls are uploaded to the server.
Now I am facing another issue ! : I can hear the client voice only. Agent's voice couln't be heard in the recorded files. As if the agent's voice is not recorded. Can you please advise ? -
Apllied archivelogs are not deleted by RMAN
Hi there
Perhaps someone of you had such issue before.
We have a DG enviroment where we change a size of redo (both primary and standby). After that rman stopped to delete aplllied archivelogs on standby.
Everything works fine, archivelogs on primary are backed up and deleted but they are not deleted on standby. Execution of Rman delete appplied shows that there is nothing to delete.
Crosschek goes smoothly and without error.
There is no error in alert log.
Databases: 11gR2, 11.2.0.3.0 64 bits
Can anyone help me with it?
Best regardsb5acf956-8010-404f-83b3-40242279c723 wrote:
Hi there
Perhaps someone of you had such issue before.
We have a DG enviroment where we change a size of redo (both primary and standby). After that rman stopped to delete aplllied archivelogs on standby.
Everything works fine, archivelogs on primary are backed up and deleted but they are not deleted on standby. Execution of Rman delete appplied shows that there is nothing to delete.
Crosschek goes smoothly and without error.
There is no error in alert log.
Databases: 11gR2, 11.2.0.3.0 64 bits
Can anyone help me with it?
Best regards
Hi,
On primary RMAN can't delete archived logs from standby database.
You must call delete command on standby side.
Deletion of standby archived log is not depend deletion on primary.
Why you think, delete archivelog on priamry must be delete standby archivelog?
Regards
Mahir M. Quluzade -
ARCHIVELOG deletion on primary and physical standby
Hi,
We have a primary and a physical standby database running Oracle 11.1.0.7.0 software on Red Hat Enterprise Linux x-64 bit OS. I will be using backup software
to only backup the primary database and do not have the backup software for the standby server and database.
We need to backup archived redo log files from primary site and delete the ones which are more than one month old. These archived redo log files will be applied from primary to standby database as and when the log switch occurs.
Can anybody please let me know if the following steps can be used:
Details are:
primary database name - sun (machine name is node1)
standby database name - drsun (machine name is node2)
On node1 as oracle user:
$ cat /export/home/oracle/rman/scripts/cleanup_rman_arch_sun.sh
#!/bin/sh
ORACLE_SID=sun; export ORACLE_SID
ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1; export ORACLE_HOME
PATH=$ORACLE_HOME/bin; export PATH
$ORACLE_HOME/bin/rman target sys/oracle@sun nocatalog log=/export/home/oracle/rman/log/cleanup_rman_arch_sun.log
@/export/home/oracle/rman/scripts/cleanup_rman_arch_sun.rcv
exit
$ cat /export/home/oracle/rman/scripts/cleanup_rman_arch_sun.rcv
allocate channel for delete type disk;
crosscheck archivelog all;
sql "alter system switch logfile";
delete noprompt expired archivelog all;
change archivelog until time 'SYSDATE-1' delete;
release channel;
$ crontab -l
# Delete the archived redo log files at 11:00 PM on the first day of every month
00 23 1 * * /export/home/oracle/rman/scripts/cleanup_rman_arch_sun.sh
On node2 as oracle user:
$ cat /export/home/oracle/rman/scripts/cleanup_rman_arch_drsun.sh
#!/bin/sh
ORACLE_SID=drsun; export ORACLE_SID
ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1; export ORACLE_HOME
PATH=$ORACLE_HOME/bin; export PATH
$ORACLE_HOME/bin/rman target sys/oracle@drsun nocatalog log=/export/home/oracle/rman/log/cleanup_rman_arch_drsun.log
@/export/home/oracle/rman/scripts/cleanup_rman_arch_drsun.rcv
exit
$ cat /export/home/oracle/rman/scripts/cleanup_rman_arch_drsun.rcv
allocate channel for delete type disk;
crosscheck archivelog all;
sql "alter system switch logfile";
delete noprompt expired archivelog all;
change archivelog until time 'SYSDATE-1' delete;
release channel;
$ crontab -l
# Delete the archived redo log files at 11:00 PM on the first day of every month
00 23 1 * * /export/home/oracle/rman/scripts/cleanup_rman_arch_drsun.sh
RegardsHello;
Welcome to the forums. ( By physical Standby I assume Data Guard )
The short answer is it should work. I noticed this :
/cleanup_rman_arch_drsun.rcv
crosscheck archivelog all;
sql "alter system switch logfile";
delete noprompt expired archivelog all;
change archivelog until time 'SYSDATE-1' delete;I see no reason for the "alter system switch logfile". In fact you can do something very simple on the Standby :
$ORACLE_HOME/bin/rman target / catalog <user>/<password>@<catalog> << EOF
delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-1';
exit
EOFThis assumes you have doing a backup with RMAN on the Primary ( tested on 11.2.0.2 ) and have this set on the Primary :
CONFIGURE ARCHIVELOG DELETEION POLICY TO APPLIED ON ALL STANDBY;
If you are deleting Archive without using RMAN first then yes something like this ( But I would try to use RMAN and not delete using another method )
echo `date`
echo "Runnung RMAN archive crosscheck"
$ORACLE_HOME/bin/rman <<EOF
connect target /
crosscheck archivelog all;
delete noprompt expired archivelog all;
exit
EOF
echo `date`
Best Regards
mseberg
h2. Another Standby Option
/u01/app/oracle/dba_tool/bin/removestandbyarch.sql
SET echo off
SET feedback off
SET term off
SET pagesize 0
SET linesize 200
SET newpage 0
SET space 0
col name format a120
spool /u01/app/oracle/dba_tool/bin/rm_arch_standby.sh
select 'rm '||NAME from v$archived_log
where REGISTRAR='RFS'
and APPLIED='YES'
and DELETED='NO'
and COMPLETION_TIME < (SYSDATE-10);
SPOOL OFFMain shell script
/u01/app/oracle/dba_tool/bin/removestandbyarch.sh
#!/bin/bash
if [ "$1" ]
then DBNAME=$1
else
echo "basename $0 : Syntax error : use . removestandbyarch <DBNAME> "
exit 1
fi
# Set the Environmental variable for input instance ( ORACLE_SID, ORACLE_HOME path etc )
. /u01/app/oracle/dba_tool/env/${DBNAME}.env
$ORACLE_HOME/bin/sqlplus /nolog <<EOF
connect / as sysdba
-- spool /u01/app/oracle/dba_tool/bin/rm_arch_${ORACLE_SID}.sh
@/u01/app/oracle/dba_tool/bin/removestandbyarch.sql
SPOOL OFF
EOF
echo `date`
# Now run the generated script
echo "Setting permissions and running script"
chmod 740 /u01/app/oracle/dba_tool/bin/rm_arch_standby.sh
. /u01/app/oracle/dba_tool/bin/rm_arch_standby.sh
# Use RMAN to update V$ARCHIVED_LOG.DELETED
echo `date`
echo "Runnung RMAN archive crosscheck"
$ORACLE_HOME/bin/rman <<EOF
connect target /
crosscheck archivelog all;
delete noprompt expired archivelog all;
exit
EOF
echo `date`Edited by: mseberg on Apr 30, 2012 8:40 AM -
I have a new wireless apple keyboard. I can only delete items that are to the left of the cursor using the delete key. What key do I use to delete items that are to the right side of the cursor? I have only one delete key.
My old apple wired keyboard has 2 delete keys that enabled me to easly delete data on either side of the cursor.
ThanksFn + Delete
-
Standby Applied Archivelog Automatic Deletion
Dear OTN Community,
My Oracle version is 10gR2 and OS is HP-UX v11.31
My question here is i have configured the archivelog deletion policy from none to APPLIED ON STANDBY on the standby database since we are taking backups on the primary database. I left the archivelog deletion policy as none on the primary database.
I have also set the retention period from redundancy 1 to recovery window of 2 days on the primary database. So the archivelogs, backups etc. are older than 2 days should be tagged as expired.
Now should the Oracle delete the expired and applied archivelogs of primary database on the standby archive destination of the standby database, am i right?
The other question is, how can we delete applied archivelogs from the standby archive destination on the standby unix box automatically? Let's say, i do not want to delete them using a unix deletion script or taking a backup of the archivelogs on primary database. Is it possible on realtime with an Oracle parameter or not?
Thank you in anticipating,
OganHi Ogan,
It's better to set the parameter applied on standby on the standby AND on the primary side, anyvay one of the side will not do anything but after a switchover like this all is already set.
Then yes Oracle will delete expired backup, archivelog on the primary destination and delete the applied log on the standby destination.
For your other question, put the applied on standby also on the primary side.
Loïc -
What would happen if I were to delete the primary email address linked to my Apple ID?
I wish to completely de-activate my @hotmail email address in order to be left with just my @icloud email address becuase I would find life more managable that way.
I found out that I cannot change my primary @hotmail email address linked to my Apple ID with an @icloud email address as it is an active, separate Apple ID (in itself with a separate purchase / download history etc)...
Also I am aware that separate Apple ID's cannot be merged together...
My question is: "What would happen if I were to delete the primary email address linked to my Apple ID?"
Would I be able to keep and use my purchases, provided they are backed up on my Mac and authorised?
Would I be able to update those transferred purchases even though the email address linked to the apple ID in which the app was bought no longer exists?You can change the primary e-mail address associated with your Apple ID, so long as it isn't a mac, me or icloud email.
http://support.apple.com/kb/HT5621
Your Apple ID account, regardless of the primary email, can never be 'deleted', just abandoned.
You could always just switch between the two Apple IDs as needed, to access the different purchases. -
Problems deleting a primary key field in a table.
Hello Guys,
I deleted a primary key field in a custom table by clicking 'delete row' icon and then tried activating it through se14 - database utility. It is throwing an error saying 'Primary key change not permited for the value table zxxxx'. What is the problem???
How can I delete a primary key in a table??
Please help.
Thanks,
NarenI am pasting the detail explaination over that error.
Primary key change not permitted for value table ZTV_RANGE_NUMBER
Message no. AD 300
Diagnosis
This table is defined as a check table. For reasons of consistency, changes to the primary key of the table are not allowed.
Procedure
If it is essential that you change the primary key, you must delete the relevant foreign keys. Refer to the where-used list to find all tables containing a field that is checked against this table. Delete the foreign keys for these fields.
If necessary, maintain the deleted foreign keys again. -
If data files are deleted?
If data files are deleted, can they be recovered from the control file?
It depends on what is in the datafiles in the tablespaces, if they actually contain data, if they are the only datafiles for the tablespace, etc.
Let's assume that they are the only datafiles for the tablespace and segments have allocated and used space in them.
If the segments are index segments, you can recreate the indexes from the data that currently exists in the table.
If the segments are table segments, you will need to recreate the data either by hand or extracting it from another source.
If no segment has allocated space in the datafile, you should be able to offline the datafile. If this works, it is a good idea to migrate the segments to a new tablespace and then drop the tablespace (unless it is SYSTEM) as Oracle does not like offline datafiles and it will become a maintenance hassle.
If you do not have a backup, do you have a recent export?
Once you have addressed the immediate issues of reconstructing the data, you need to address the issues of backups (you should at least backup the database periodically even if you don't run in archivelog mode) and security (no one should be dropping live data files).
Regards,
Daniel Fink -
Data Guard archive deleted from Primary datbase before transfaring Standby
Dear all
I have a physical standby database. And Primary database on RAC node 1 and node 2.
Accidently archive log deleted from Primary db before shipped standby db .
I saw this error which is showing the GAP.
FAL[client]: Failed to request gap sequence
GAP - thread 1 sequence 1_7090 1_7090
ir
Edited by: user8244545 on Jun 7, 2010 11:33 AM
Edited by: user8244545 on Jun 7, 2010 6:47 PMWell, I feel sorry for you after all these guys gave you such a hard time :^)
You should be using at least an RMAN Archive Log deletion policy to manage your archive log files.
See "Deletion Policy for Archived Redo Log Files In Flash Recovery Areas" at http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm#SBYDB00750 and http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm#i1031870 for 10gR2. 10g does require you use a Flash Recovery Area (FRA, renamed to Fast Recovery Area) . Read the paper at http://www.oracle.com/technology/deploy/availability/pdf/RMAN_DataGuard_10g_wp.pdf to sort out not having to use MANDATORY (which we do not recommend).
Now, if you are at 11g (R1 or R2) you don't even have to be using the FRA nor mandatory to have it work. See http://www.oracle.com/pls/db111/to_URL?remark=ranked&urlname=http:%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB28359_01%2Fbackup.111%2Fb28270%2Frcmconfb.htm%23BRADV89439.
If you do not use RMAN to backup the archive logs at least these deletion policy will prevent this from happening again since you will no longer be deleting archive logs manually.
Now, it may be too late for this, I am behind in my mail, but you could get the standby past this gap by using an incremental backup of the primary from the last SCN that was applied at the standby. See the manual at http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/scenarios.htm#CIHIAADC for more information.
Larry -
Archive Deleted from primary database
Dear Experts
I have configured physical standby database on oracle 9.2.0.1
an archive has been deleted from primary database. and it is not applied on standby database.
How can I synch my standby database with primary database?
please help me out
thanksDo not need configure rman. Try this.This mean is you will get all changes from primary database without logs(archivelogs becuse you loss these) then apply these to stand by.This is a best way.First change SCN from Standby database then do these.
You can get SCN from standby as
select min (checkpoint_change#) from v$datafile_header -
Archivelogs are missing sometimes !
Hi Friends ,
I am using now Oracle 10g version in Linux . sometimes I see that some archivelog are missing in my archivelog destination . For example , see the below output :
[oracle@test archivelog]$ ls -lrt
total 388
-rw-r----- 1 oracle oinstall 1024 May 13 12:57 1_6_718892273.dbf
-rw-r----- 1 oracle oinstall 286208 May 13 12:59 1_8_718892273.dbf
-rw-r----- 1 oracle oinstall 95744 May 13 13:00 1_9_718892273.dbf
[oracle@test archivelog]$ pwd
/u01/archivefs/ORCL/archivelog
here archivelog 7 is missing . But Idont understand why sometimes archivelogs are missing and how can I recover it . If I need to recover database then is the recovery process (specially time based or any other) is performed successfully ?
Plz tell me , "why here archivelog missing ?" . I dont delete any archivelog from this location and also I dont use FRA , I store archivelog into another filesystem .
Barring this , Regarding downstream dataguard configuration , I also face the same problem in my production server and for the archvielog missing of production , my standby database cannot capture the redologs from production .
waiting for kind reply ...Here is the full output :
NAME THREAD# SEQUENCE# FIRST_TIME NEXT_TIME COMPLETION_TIME ARCHIVED DELETED
/u01/archivefs/ORCL/archivelog/1_13_718892273.dbf,1,13,5/13/2010 1:24:10 PM,5/13/2010 1:24:14 PM,5/13/2010 1:24:15 PM,YES,NO
/u01/archivefs/ORCL/archivelog/1_12_718892273.dbf,1,12,5/13/2010 1:24:08 PM,5/13/2010 1:24:10 PM,5/13/2010 1:24:10 PM,YES,NO
/u01/archivefs/ORCL/archivelog/1_11_718892273.dbf,1,11,5/13/2010 1:22:07 PM,5/13/2010 1:24:08 PM,5/13/2010 1:24:08 PM,YES,NO
/u01/archivefs/ORCL/archivelog/1_10_718892273.dbf,1,10,5/13/2010 1:00:00 PM,5/13/2010 1:22:07 PM,5/13/2010 1:22:08 PM,YES,NO
/u01/archivefs/ORCL/archivelog/1_9_718892273.dbf,1,9,5/13/2010 12:59:34 PM,5/13/2010 1:00:00 PM,5/13/2010 1:00:00 PM,YES,NO
/u01/archivefs/ORCL/archivelog/1_8_718892273.dbf,1,8,5/13/2010 12:58:53 PM,5/13/2010 12:59:34 PM,5/13/2010 12:59:37 PM,YES,NO
/u01/archivefs/ORCL/archivelog/1_6_718892273.dbf,1,6,5/13/2010 12:57:08 PM,5/13/2010 12:57:17 PM,5/13/2010 12:57:17 PM,YES,NO
/u01/archivefs/ORCL/archivelog/1_5_718892273.dbf,1,5,5/13/2010 12:54:56 PM,5/13/2010 12:57:08 PM,5/13/2010 12:57:08 PM,YES,NO
/u01/archivefs/ORCL/archivelog/1_4_718892273.dbf,1,4,5/13/2010 12:51:46 PM,5/13/2010 12:54:56 PM,5/13/2010 12:54:59 PM,YES,NOEdited by: shipon_97 on May 13, 2010 1:39 PM -
RMAN backup archivelog all delete input
Hello DBAs,
what does this command will do?
RMAN> backup archivelog all delete input;
DNI have set cron job for RMAN> backup archivelog all delete input; and its work.
But I got following message in my log file.
Please give ur feed back.
Recovery Manager: Release 10.1.0.4.0 - 64bit Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
RMAN>
connected to target database: SIDNAME (DBID=XXXXXXXX)
using target database controlfile instead of recovery catalog
RMAN>
Starting backup at 10-FEB-06
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=269 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=268 devtype=DISK
channel ORA_DISK_1: starting compressed archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=5701 recid=2412 stamp=581958928
input archive log thread=1 sequence=5702 recid=2413 stamp=581961105
input archive log thread=1 sequence=5703 recid=2414 stamp=581964532
input archive log thread=1 sequence=5704 recid=2415 stamp=582025325
input archive log thread=1 sequence=5705 recid=2416 stamp=582029976
input archive log thread=1 sequence=5706 recid=2417 stamp=582031922
channel ORA_DISK_1: starting piece 1 at 10-FEB-06
channel ORA_DISK_2: starting compressed archive log backupset
channel ORA_DISK_2: specifying archive log(s) in backup set
input archive log thread=1 sequence=5707 recid=2418 stamp=582037207
input archive log thread=1 sequence=5708 recid=2419 stamp=582038471
input archive log thread=1 sequence=5709 recid=2420 stamp=582043538
input archive log thread=1 sequence=5710 recid=2421 stamp=582048518
input archive log thread=1 sequence=5711 recid=2422 stamp=582055205
channel ORA_DISK_2: starting piece 1 at 10-FEB-06
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/10/2006 18:00:
12
ORA-19502: write error on file "/u02/backup/backup_6ehb2t97_1_1", blockno 6145 (
blocksize=512)
ORA-27063: number of bytes read/written is incorrect
IBM AIX RISC System/6000 Error: 28: No space left on device
Additional information: -1
Additional information: 1048576
channel ORA_DISK_1 disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 02/10/2006 18:00:
12
ORA-19502: write error on file "/u02/backup/6fhb2t97_1_1", blockno 6145
(blocksize=512)
ORA-27063: number of bytes read/written is incorrect
IBM AIX RISC System/6000 Error: 28: No space left on device
Additional information: -1
Additional information: 1048576
channel ORA_DISK_2 disabled, job failed on it will be run on another channel
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/10/2006 18:00:
12
ORA-19502: write error on file "/u02/backup/backup_6ehb2t97_1_1", blockno 6145 (
blocksize=512)
ORA-27063: number of bytes read/written is incorrect
IBM AIX RISC System/6000 Error: 28: No space left on device
Additional information: -1
Additional information: 1048576
RMAN>
Recovery Manager complete.
DN -
Backup archivelog all delete all input
RMAN> backup archivelog all delete all input;
i have backed up all my archivelogs using the above command, but after the backup archivelogs are not deleted from its default location .ie my default archive location is '/oracle/archive' . After executing the above command, I can see all the archivelogs still available in that location. why is it so
Db:10.2.0
OS: solaris 10
Edited by: user13364377 on Aug 22, 2010 10:44 AM>
My control_file_record_keep_time is 7 days. My understanding is that when we specify the below command,
Rman>backup archivelog all delete all input;
rman will backup all the archive logs(one copy of each log sequece) from the archive location and then delete all the archive logs from the archive location. is it not correct?
>
That is generally right. But that assumes that RMAN knows about these archivelogfiles. It knows about them because of entries in the controlfile. If they are nolonger present - RMAN will not know them and not Backup & delete them.
Kind regards
Uwe Hesse
http://uhesse.wordpress.com -
Select statement from a join file deletes the primary records with MS Expl.
Hello,
is reality,
Select statement from a join file deletes the primary records with MS Explorer 6, Firefox not, this with a normal data provider or with a normal "select..." statement.
This is very strange, I should have a.a.s.p. a solution or workaround
Thanks, Franco.
Message was edited by:
fbiaggiPlease see the following excerpt from the online documentation.
http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_modes.htm#SUTIL1332
Enabled Constraints
During a direct path load, the constraints that remain enabled are as follows:
NOT NULL
UNIQUE
PRIMARY KEY (unique-constraints on not-null columns)
NOT NULL constraints are checked at column array build time. Any row that violates the NOT NULL constraint is rejected.
Even though UNIQUE constraints remain enabled during direct path loads, any rows that violate those constraints are loaded anyway (this is different than in conventional path in which such rows would be rejected). When indexes are rebuilt at the end of the direct path load, UNIQUE constraints are verified and if a violation is detected, then the index will be left in an Index Unusable state. See "Indexes Left in an Unusable State".
Maybe you are looking for
-
Hi All, I would like to create clickable Table of Contents (TOC) that can lead to a sub clickable TOC that would lead to a specific page of different PDFs within a folder. Is that possible? Secondly, is is possible to create a search box that upon ty
-
Select multiple frames across multiple pages for photos frames
Hi people! How can i select multiple frames across multiple pages? I want my images to fit the frames by one click. I do not want to go through each page one by one . There must be some way to solve this.. or? Cant find a options that can do that so
-
i want to merge the cell in the jtable , as one cell requires more space than other kindly tell me how to do so
-
Help with install 64bit windows 7 on ssd step by step for HP Compaq 6910P?
Could you help me how to install 64bit windows 7 on a ssd step by step for HP Compaq 6910P? Any drivers for the notebook? Thanks in advance. This question was solved. View Solution.
-
Problems after Upgrading Sunopsis V3 in ODI
Hello, I have upgraded my old Sunopsis V3 in ODI following the documentation. It was quite easy but a few problems appear now. 1/ When I have tryed to update interfaces, procedures or other objects, a message appears and told me that this object have