How to delete the archive logs.
Hi,
I need to delete the archive logs in standby database which has been generated after created the restore point.
SEQUENCE# APPLIED
17 YES
18 YES
1 NO
2 NO
19 YES
18 YES
21 YES
22 YES
20 YES
23 YES
24 YES
sequence 1,2 has been generated after created the restore point,how can i remove sequence# 1 and 2 from the v$archived_log;
ways i have tried
1.dropped the restore point during that time only the flashback logs has been deleted not the archive log
2.manually tried from rman ,but i was not working.
please help me out....
***points are waiting for you guys****
Hi,
I need to delete the archive logs in standby database which has been generated after created the restore point.
SEQUENCE# APPLIED
17 YES
18 YES
1 NO
2 NO
19 YES
18 YES
21 YES
22 YES
20 YES
23 YES
24 YES
sequence 1,2 has been generated after created the restore point,how can i remove sequence# 1 and 2 from the v$archived_log;
ways i have tried
1.dropped the restore point during that time only the flashback logs has been deleted not the archive log
2.manually tried from rman ,but i was not working.
please help me out....
***points are waiting for you guys****
Similar Messages
-
*HOW TO DELETE THE ARCHIVE LOGS ON THE STANDBY*
HOW TO DELETE THE ARCHIVE LOGS ON THE STANDBY
I have set the RMAN CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY; on my physical standby server.
My archivelog files are not deleted on standby.
I have set the CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default on the Primary server.
I've checked the archivelogs with the FRA and they are not beign deleted on the STANDBY. Do I have to do something for the configuation to take effect? Like run a RMAN backup?
I've done a lot ofresearch and i'm getting mixed answers. Please help. Thanks in advanced.
JSetting the Policy will not delete the Archive logs on the Standby. ( I found a thread where the Data Guard product manager says "The deletion policy on both sides will do what you want" ). However I still
like to clean them off with RMAN.
I would use RMAN to delete them so that it can use that Policy are you are protected in case of Gap, transport issue etc.
There are many ways to do this. You can simply run RMAN and have it clean out the Archive.
Example :
#!/bin/bash
# Name: db_rman_arch_standby.sh
# Purpose: Database rman backup
# Usage : db_rman_arch_standby <DBNAME>
if [ "$1" ]
then DBNAME=$1
else
echo "basename $0 : Syntax error : use . db_rman_full <DBNAME> "
exit 1
fi
. /u01/app/oracle/dba_tool/env/${DBNAME}.env
echo ${DBNAME}
MAILHEADER="Archive_cleanup_on_STANDBY_${DBNAME}"
echo "Starting RMAN..."
$ORACLE_HOME/bin/rman target / catalog <user>/<password>@<catalog> << EOF
delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-8';
exit
EOF
echo `date`
echo
echo 'End of archive cleanup on STANDBY'
mailx -s ${MAILHEADER} $MAILTO < /tmp/rmandbarchstandby.out
# End of ScriptThis uses ( calls an ENV) so the crontab has an environment.
Example ( STANDBY.env )
ORACLE_BASE=/u01/app/oracle
ULIMIT=unlimited
ORACLE_SID=STANDBY
ORACLE_HOME=$ORACLE_BASE/product/11.2.0.2
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
LIBPATH=$LD_LIBRARY_PATH:/usr/lib
TNS_ADMIN=$ORACLE_HOME/network/admin
PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:.
#export TERM=linux=80x25 wrong wrong wrong wrong wrong
export TERM=vt100
export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
export ORACLE_HOME
export LIBPATH LD_LIBRARY_PATH ORA_NLS33
export TNS_ADMIN
export PATH
export MAILTO=?? your email hereNote use the env command in Unix to get you settings.
There are probably ten other/better ways to do this, but this works.
other options ( you decide )
Configure RMAN to purge archivelogs after applied on standby [ID 728053.1]
http://www.oracle.com/technetwork/database/features/availability/rman-dataguard-10g-wp-1-129486.pdf
Maintenance Of Archivelogs On Standby Databases [ID 464668.1]
Tip I don't care myself but in some of the other forums people seem to mind if you use all caps in the subject. They say it shouting. My take is if somebody is shouting at me I'm probably going to just move away.
Best Regards
mseberg
Edited by: mseberg on May 8, 2012 11:53 AM
Edited by: mseberg on May 8, 2012 11:56 AM -
How to find out who deleted the archive logs
Hi All,
Recently some archive logs were deleted from one of our servers. Is there any way to find out which user has deleted the archive logs through OS or through database ?
OS Version :-
SunOS Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
Database Version:-
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 9 01:12:15 2012888132 wrote:
Hi All,
Recently some archive logs were deleted from one of our servers. Is there any way to find out which user has deleted the archive logs through OS or through database ?
OS Version :-
SunOS Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
Database Version:-
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Apr 9 01:12:15 2012As explained by others, from oracle database there is no record if they are deleted from OS.
But you can probably find the history of OS command been run with history command :). You can get the date and time.
Following link can help
http://stackoverflow.com/questions/99755/how-do-i-get-the-command-buffer-in-solaris-10
http://www.cyberciti.biz/faq/unix-linux-bash-history-display-date-time/
http://www.linuxquestions.org/questions/solaris-opensolaris-20/in-solaris-command-line-how-to-get-the-previous-commands-573814/
But i suggest you to post in Sun OS forum to get more details as its nothing to do with Database(in this scenario) -
How to disable the archive logs in SAP IDES(Windows) using SQL Server
can any body tell us How to disable the archive logs in SAP IDES(Windows 2003) using SQL Server 2000.SP4.?
Hi,
Unfortunately, SQL Server does not have the option to turn off transaction logging. You can set the recovery mode to SIMPLE, instead of FULL. This will result in the transaction log being truncated on checkpoint.
http://support.microsoft.com/kb/873235 - check this microsoft article
This will help in reduction of the size of the transcation log.
- Regards, Dibya -
I accidently delete the archived log, how to recover?
There was old archived log file in a directory, I delete the directory, so when I backup whole archived log with RMAN, I often got error like this,
RMAN-06059: expected archived log not found, lost of archived log compromises recoverabiligy
ora-196525: error identifying file G:\oracle\oradata\archive\arc00081.001
I am using oracle 9.2 on windows XP
Edited by: user8117130 on Jun 14, 2009 9:35 PMHI..
I delete the directory, so when I backup other archived log with RMAN, I often got error like this From metalink:-
Error: RMAN-06059 (RMAN-6059)Text: expected archived log not found, lost of archived log compromises
recoverability
Cause: The archived log was not found. The repository thinks it does
exist. If the archived log has in fact been lost and there is no
backup, then the database is no longer recoverable across the
point in time covered by the archived log. This may occur because
the archived log was removed by an outside utility without
updating the repository.
Action: If the archived log has been removed with an outside utility and
the archivelog has already been backed up, then you can
synchronize the repository by running CROSSCHECK ARCHIVELOG ALL.
If the archivelog has not been previously backed up, then you
should take a full backup of the database and archivelogs to
preserve recoverability. Previous backups are not fully
recoverable.
>
Anand -
How to delete old archived logs
hai i am running oracle 9i in archive log mode
my disk is about 90% full
pls tell me how to delete archive logs that are very olderHi Rajeskm,
First of all, archives should not be deleted, depending your backup policie, you can need them in a recovery. But if you want delete them, do:
find <log_archive_dest>/ -name *.rdo (or extention used by you) mtime +<days ago> -exec rm{}\
Explanation:
Find -- The first, and most obvious, use is find's ability to locate old, big, or unused files, or files that you forgot where they are.
mtime -- The mtime--modify time--is the time when the actual contents of a file was last modified. This is the time displayed in a long directoring listing (ls -l).
rm -- Deletes a file without confirmation (by default).
Regards,
Jonathan Ferreira - Brazil
http://www.ebs11i.com.br -
How to delete the archived messages?
Archiving is setup and running in our PI systems. ( I used the SDN doc, "Archive and Delete Messages in SAP. XI: A Step-by-Step Guide")
I'm now looking to automate the deletion of the archived messages (NOT the deletion of the original message in the DB, but the data that has been written out to the O/S -- the actual archived data file.
Any pointers on how to accomplish this?
Thanks in advance.
-Joe RufoThe archive job creates the files in the files system you configured. These files contain the archived messages..
What you can do is run periodic jobs to deletes files which are older than a certain date...
If there are certain types of messages you want to hold on for a longer period...then archive them seperately... and run a different batch job to clear the files...
regards,
Arvind R -
How to delete the warnning log in CheckDB LOG
hi,experts,
now, i have a trouble question.
could you help me to solved it, thanks in advanced.
SAP system(NetWeaver7.00), (T-code)DB13 there is a job named CheckDB.
i deleted the NextExtent job in the 2009.10.1
then, after 10 days, there was a warning in the CheckDB LOG.
it is u2193u2193u2193
Database operation alert - level: WARNING, operation: cebskwfy.nxt, time: 2009-10-01 10.00.34, condition: Last successful 'nxt' operation older than 10 days
Now, i want to Delete the log in the CheckDB LOG.
but i dont know how to do.
by the way. the object of (DBO)OPERATION_TOO_OLD is chk , and the object of (DBO)OPERATION_TOO_OLD is blank.
what is the difference bewteen them?
thanks and regards.
chuThanks for your reply.
If i am going to delete the log in the checkDBLOG,
Can you tell me how to do.
maybe it is not deleted in the sap system. i think.
thanks and regards
chu -
How to backup the archived log after a crosscheck .
Hi all,
Here is the scenario:
My archive area got full, I moved some archived logs to another destination. My main script to backup archive log raised a error informing that some files were missing, so I issued a crosscheck archivelog all command.
I realized that I did something insane and is there any way to fix it? I mean, how could I backup the missed sequence? Because I'll need to send them to a tape and also register the files in the RMAN's catalog.
Regards and thanks in advance,
Emersonuser11983913 wrote:
Hi all,
Here is the scenario:
My archive area got full, I moved some archived logs to another destination. My main script to backup archive log raised a error informing that some files were missing, so I issued a crosscheck archivelog all command.
I realized that I did something insane and is there any way to fix it? I mean, how could I backup the missed sequence? Because I'll need to send them to a tape and also register the files in the RMAN's catalog.
Regards and thanks in advance,
EmersonHi Emerson
Use the following command to register moved archived redo logs to RMAN repository
CATALOG ARCHIVELOG ''; -
Hi my oracle application server logs became very huge in size i wanted delete them
if i remove the logs and save it is prompting check file and path is there any other wayKishore,
Stop application server first and then delete the log files. Oracle application server will create these log files on next server starts.
Thanks & Regards,
Dharmendra
http://soa-howto.blogspot.com -
How to delete the fax log,officejet 4500 G510,delete button not highlighted
need help trying to delete fax log,officejet 4500, win 7,,64
Hello again schlo1901,
Have you by chance attempted to high light one contact at a time and then pressing the delete option?
If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
Thank you once again for your time.
Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
W a t e r b o y 71
I work on behalf of HP -
How to delete the foreign archivelogs in a Logical Standby database
How do I remove the foreign archive logs that are being sent to my logical standby database. I have files in the FRA of ASM going back weeks ago. I thought RMAN would delete them.
I am doing hot backups of the databases to FRA for both databases. Using ASM, FRA, in a Data Guard environment.
I am not backing up anything to tape yet.
The ASM FRA foreign_archivelog directory on the logical standby FRA keeps growing and nothing is get deleted when
I run the following command every day.
delete expired backup;
delete noprompt force obsolete;
Primary database RMAN settings (Not all of them)
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 9 DAYS;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE DB_UNIQUE_NAME 'WMRTPRD' CONNECT IDENTIFIER 'WMRTPRD_CWY';
CONFIGURE DB_UNIQUE_NAME 'WMRTPRD2' CONNECT IDENTIFIER 'WMRTPRD2_CWY';
CONFIGURE DB_UNIQUE_NAME 'WMRTPRD3' CONNECT IDENTIFIER 'WMRTPRD3_DG';
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
Logical standby database RMAN setting (not all of them)
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 9 DAYS;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
How do I cleanup/delete the old ASM foreign_archivelog files?OK, the default is TRUE which is what it is now
from DBA_LOGSTDBY_PARAMETERS
LOG_AUTO_DELETE TRUE SYSTEM YES
I am not talking about deleting the Archive logs files for the Logical database that it is creating, but the Standby archive log files being sent to the Logical Database after they have been applied.
They are in the alert log as follows under RFS LogMiner: Registered logfile
RFS[1]: Selected log 4 for thread 1 sequence 159 dbid -86802306 branch 763744382
Thu Jan 12 15:44:57 2012
*RFS LogMiner: Registered logfile [+FRA/wmrtprd2/foreign_archivelog/wmrtprd/2012_01_12/thread_1_seq_158.322.772386297] to LogM*
iner session id [1]
Thu Jan 12 15:44:58 2012
LOGMINER: Alternate logfile found. Transition to mining archived logfile for session 1 thread 1 sequence 158, +FRA/wmrtprd2/
foreign_archivelog/wmrtprd/2012_01_12/thread_1_seq_158.322.772386297
LOGMINER: End mining logfile for session 1 thread 1 sequence 158, +FRA/wmrtprd2/foreign_archivelog/wmrtprd/2012_01_12/threa
d_1_seq_158.322.772386297
LOGMINER: Begin mining logfile for session 1 thread 1 sequence 159, +DG1/wmrtprd2/onlinelog/group_4.284.771760923 -
Script for automatic delete of archive logs/redologs
Hi Experts,
Do you have any idea on how to create a shell script. Actually the function of it, is to automatically deletes the archive logs/redologs if reaches the limit. Or is there any parameter to change to set the automatic deletion of archive logs/redologs.
RegardsHi,
at first, archivelogs should always be saved to tape before you delete them. If you don't want to backup them, may be for a test system, you can suppress them in ORACLE instead to delete them later.
You can run the database in "NOARCHIVE LOG MODE". If you do so, the online redologs are not archived, they are still reused and overwritten. You can not run an online Backup, when the database is in noarchive log mode. If you want to backup the database, you have to run an offline backup.
Do not use the NOARCHIVE LOG MODE for production or developemet systems.
To change the archive log mode:
shutdown the database
startup mount;
alter database noarchivelog;
alter database open;
archive log list will show the actual status
regards Ulrich -
How to delete the data in archived log files
hi
how can i delete the enteries in archived log files. and what is the disadvantage of deleting archived log enteries.There is no documented way to delete data stored in archived log files: you can only remove the archived log files if needed.
-
How to delete the temporary files when we log out from ESS
Hello expert,
In my company we are running ESS using ITS server, do you know how to delete the temporary files when we log out from ESS?
Thanks.The temporary files used by ESS. For example paystub pdf file.
Maybe you are looking for
-
Hi experts, In my interactive ALV report I want to give different color to selected rows in my alv. How to proceed with that in interactive alv? Thanks, Sakthi C
-
How to create package and import from jar file?
Hi all, I am writing a software and I am not sure how to create a package for the classes. Say I have two classes in the same directory as follows: testA.java ========== package AB; public class testA public static void main(String[] args){ test
-
We have a problem, we got reports mixed up. Sometimes documents get printed on a different printer then specified. This seem to be happening when the concurrent programs output is send to the server at exactly the same time. Is this a known issue? Ar
-
After making the simple tutorial about data binding the visual editor didn't show the page and it's components. I just report the bug. Any suggestion ? Thanks
-
I am an illustrator. I create illustrations on my iMac in Photoshop. I want to transfer my illustration files, as jpegs, onto my iPad so that I have a portfolio and can showcase my work when I visit clients. Can anyone help. Thank you!