Oracle log deletion
Hi,
I am wanting to save some space with the oracle logs which are created. I have zipped up the files and want to delete the logs until I actually have to use them. Does Oracle access these logs during normal operation or am I safe to delete them and extract them from the zip file if needed in the future?
we dont do online operations we have created log
files after backup and it has occupied large space in
memory, we have created some log files is it save to
delete these log files.I am kinda confused by the statment.
What log files you created? with what command?
occupied large space in memoryI suppose you mean diskspace not memory correct?
Similar Messages
-
Regarding SAP & Oracle logs deletion
Hi,
I have a concern on SAP & Oracle logs. I want to know what are all the logs mentioned below can be deleted and what are all the logs should be kept for the recovery of DB, if the system got crashed. Also how many days logs should be kept for the future purpose. In our landscape, we are running online backup job daily from the T-code DB13.
sapbackup
oraarch
mirrlogA
mirrlogB
origlogA
origlogB
saparch
sapcheck
sapreorg
saptrace\usertrace
saptrace\background
Kindly let me know the answer ASAP.
Thanks & Regards,
Mogileeswar ReddyThat information is widely available.
No research done
No interview questions
Please read the "Rules of Engagement"
Regards
Juan -
Question about Archive Log Deletion policy
I've a problem to understand the Archive Log Deletion policy, and I I'd like to this problem explain with the following example.
Messages of the database are in German, but I guess you'll understand them.
SQL> startup
ORACLE-Instance hochgefahren.
Total System Global Area 5344731136 bytes
Fixed Size 2129240 bytes
Variable Size 2684355240 bytes
Database Buffers 2617245696 bytes
Redo Buffers 41000960 bytes
Datenbank mounted.
Datenbank geöffnet.
SQL> archive log list
Datenbank-Log-Modus Archive-Modus
Automatische Archivierung Aktiviert
Archivierungsziel E:\oracle\thetis_iv\arch
Älteste Online-Log-Sequenz 17917
Nächste zu archivierende Log-Sequenz 17919
Aktuelle Log-Sequenz 17919
SQL> alter system switch logfile;
System wurde geändert.I created a brand new archive log.
SQL> exit
Verbindung zu Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options beendet
D:\OracleDB\product\11.1.0\db_1\BIN>dir E:\oracle\thetis_iv\arch
Datenträger in Laufwerk E: ist Volume
Volumeseriennummer: 3EBD-77E5
Verzeichnis von E:\oracle\thetis_iv\arch
06.04.2011 15:04 <DIR> .
06.04.2011 15:04 <DIR> ..
06.04.2011 15:04 17.137.152 ARC17919_0721667907.001
1 Datei(en), 17.137.152 Bytes
2 Verzeichnis(se), 41.073.258.496 Bytes freiand this is the only archive log in the directory. Now I start rman:
D:\OracleDB\product\11.1.0\db_1\BIN>rman target / catalog rmanrepo@rmanrepo
Recovery Manager: Release 11.1.0.7.0 - Production on Mi Apr 6 15:05:35 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Mit Ziel-Datenbank verbunden: ENTWIV (DBID=21045568)
Kennwort für Recovery-Katalog-Datenbank:
Verbindung mit Datenbank des Recovery-Katalogs
RMAN> show all;
RMAN-Konfigurationsparameter für Datenbank mit db_unique_name ENTWIV sind:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'E:\oracle\thetis_iv\backup\CF_%F_ENTWIV.ORA';
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
CONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(TPDO_OPTFILE=D:\Services\Tivoli\TSM\AgentOBA64\tpdo.opt)';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BZIP2'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 2 TIMES TO 'SBT_TAPE';
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\ORACLEDB\PRODUCT\11.1.0\DB_1\DATABASE\SNCFENTWIV.ORA'; # defaultThe archive log deletion policy says the the logfiles have to be backed up for two times before they get deleted.
Now I backup all archive logs, that havn't been backed up for at least two times.
RMAN> run { backup archivelog all not backed up 2 times
2> format '%d_AR_%Y%M%D_%s_%t'
3> tag 'ARCHIVE LOGS'
4> DELETE ALL INPUT;
5> }
Starten backup um 06.04.2011 15:08:01
Aktuelles Log archiviert
Zugewiesener Kanal: ORA_SBT_TAPE_1
Kanal ORA_SBT_TAPE_1: SID=253 Device-Typ=SBT_TAPE
Kanal ORA_SBT_TAPE_1: Data Protection for Oracle: version 5.5.1.0
Kanal ORA_SBT_TAPE_1: Backup Set für Archive Log wird begonnen
Kanal ORA_SBT_TAPE_1: Archive Logs in Backup Set werden angegeben
Eingabe-Archive-Log-Thread=1 Sequence=17919 RECID=147 STAMP=747759899
Eingabe-Archive-Log-Thread=1 Sequence=17920 RECID=148 STAMP=747760081
Kanal ORA_SBT_TAPE_1: Piece 1 wird auf 06.04.2011 15:08:02 begonnen
Kanal ORA_SBT_TAPE_1: Piece 1 auf 06.04.2011 15:08:09 beendet
Piece Handle=ENTWIV_AR_20110406_23_747760082 Tag=ARCHIVE LOGS Kommentar=API Version 2.0,MMS Version 5.5.1.0
Kanal ORA_SBT_TAPE_1: Backup Set vollstõndig, abgelaufene Zeit: 00:00:08
Kanal ORA_SBT_TAPE_1: Archive Logs werden gel÷scht
Archive Log-Dateiname=E:\ORACLE\THETIS_IV\ARCH\ARC17919_0721667907.001 RECID=147 STAMP=747759899
Archive Log-Dateiname=E:\ORACLE\THETIS_IV\ARCH\ARC17920_0721667907.001 RECID=148 STAMP=747760081
Beendet backup um 06.04.2011 15:08:10
RMAN> exit
Recovery Manager abgeschlossen.
D:\OracleDB\product\11.1.0\db_1\BIN> dir E:\oracle\thetis_iv\arch
Datenträger in Laufwerk E: ist Volume
Volumeseriennummer: 3EBD-77E5
Verzeichnis von E:\oracle\thetis_iv\arch
06.04.2011 15:08 <DIR> .
06.04.2011 15:08 <DIR> ..
0 Datei(en), 0 Bytes
2 Verzeichnis(se), 41.090.396.160 Bytes freirman deleted all archive logs, even I they are on tape only once by now.
Thats not what I expected. Where is my mistake?Hi,
I do new tests it's very strange.
BACKUP ARCHIVELOG command is not obeying the policy of archivelog.
You can open a SR on MOS. (to check bugs)
I reproduce the same test and the result was the same, it seems that this is a bug.
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 2 TIMES TO DISK;
RMAN> backup archivelog all not backed up 2 times delete all input;
Starting backup at 06-APR-11
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=15 RECID=16 STAMP=747753711
input archived log thread=2 sequence=20 RECID=17 STAMP=747753714
input archived log thread=1 sequence=16 RECID=19 STAMP=747753729
input archived log thread=2 sequence=21 RECID=18 STAMP=747753729
channel ORA_DISK_1: starting piece 1 at 06-APR-11
channel ORA_DISK_1: finished piece 1 at 06-APR-11
piece handle=+DATA/orcl/backupset/2011_04_06/annnf0_tag20110406t132210_0.304.747753731 tag=TAG20110406T132210 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: deleting archived log(s)
archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_1_seq_15.293.747753711 RECID=16 STAMP=747753711
archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_2_seq_20.295.747753715 RECID=17 STAMP=747753714
archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_1_seq_16.294.747753729 RECID=19 STAMP=747753729
archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_2_seq_21.298.747753729 RECID=18 STAMP=747753729
Finished backup at 06-APR-11
RMAN> list archivelog all;
specification does not match any archived log in the repositoryOracle Docs Says:
The BACKUP ARCHIVELOG ... DELETE INPUT command deletes archived log files after they are backed up.
This command eliminates the separate step of manually deleting archived redo logs.
With DELETE INPUT, RMAN deletes only the specific copy of the archived log chosen for the backup set.
With DELETE ALL INPUT, RMAN deletes each backed-up archived redo log file from all log archiving destinations.
As explained in "Configuring an Archived Redo Log Deletion Policy",
the BACKUP ... DELETE INPUT and DELETE ARCHIVELOG commands obey the archived redo log deletion policy
for logs in all archiving locations. For example, if you specify that logs should only be deleted when backed
up at least twice to tape, then BACKUP ... DELETE honors this policy.http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmbckba.htm#BRADV89524
But in ours case it's not honors this policy.
Only with the FORCE command should this happen. But it is not our case.
Oracle Docs:
If FORCE is not specified on the deletion commands,
then these deletion commands obey the archived log deletion policy.
If FORCE is specified, then the deletion commands ignore the archived log deletion policy.http://download.oracle.com/docs/cd/E11882_01/backup.112/e10643/rcmsynta010.htm#RCMRF113
Alternatively you can do the following:
Set the commands separately.
Check this:
RMAN> run {
2> backup archivelog all not backed up 2 times ;
3> delete archivelog all backed up 2 times to disk;
4> }
Starting backup at 06-APR-11
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=2 sequence=22 RECID=21 STAMP=747755128
input archived log thread=1 sequence=17 RECID=20 STAMP=747755127
channel ORA_DISK_1: starting piece 1 at 06-APR-11
channel ORA_DISK_1: finished piece 1 at 06-APR-11
piece handle=+DATA/orcl/backupset/2011_04_06/annnf0_tag20110406t134528_0.295.747755129 tag=TAG20110406T134528 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 06-APR-11
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=78 instance=orcl1 device type=DISK
RMAN-08138: WARNING: archived log not deleted - must create more backups
archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_1_seq_17.298.747755127 thread=1 sequence=17
RMAN-08138: WARNING: archived log not deleted - must create more backups
archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_2_seq_22.294.747755129 thread=2 sequence=22
RMAN>Edited by: Levi Pereira on Apr 6, 2011 1:35 PM -
FINANTIAL DOCUMENTS MISSING --- ORACLE LOGS FULL
Hi Experts,
9 documents are missing and when they were saved the system showed the message "update has been stopped". This was because of the Oracle LOGS (full).
When Oracle problem was solved the documents were not found in SM13 to recovered.
Any clue?
On the other hand If a have finantial documents in QAS how can I put it on PRD?
Regards.Hi,
Schedule your backups according to the full backup time.
Do a test of full backup and fine the time that it takes to complete the full backup. You can include "plus archivelog" if you want your archive logs to be backed up along with the full backup. This is most preferred as this makes restoration easy too.
If your full backup takes, say, 4 hrs to complete and if you schedule your full backup at 00 00 hrs on your scheduler, then schedule the archive backups after 04 00 hrs. This will solve your problems with missing archive backups.
>> "But from RMAN specialist I heard that this may cause problems with full backup. During full backup also archive logs are backed up (at the start and end) so there might be a problem with accessing the file that is used by another process. And this may cause problem with full backup - which we want to avoid especially."
This will throw out errors if your input to full backup consists "delete input" for your archived logs, else the process will not have any problem and succeed.
Also when one or more of backups run concurrently, "ORA-00230: operation disallowed: snapshot control file enqueue unavailable" error may occur but this is rare case.
Thank you!! -
ORACLE LOG ERRORS - Bug in oracle??
Hi,
we are using oracle log errors to capture oversized err records for varchar2 type fields. Sql is something like:
INSERT INTO abc (col1,col2) VALUES ('asdsass','weqwewqee') LOG ERRORS INTO abc_err('1') REJECT LIMIT UNLIMITED;
But, data captured in abc table is trimmed data. Right spaces present in source are being trimmed by oracle while capturing this error table. I have the following queries:
-Has anyone else experienced this type of behavior?
-Is it a bug in oracle log errors functionallity??
-Is there any workaround to use oracle log errors functionality to catch untrimmed data?
thanks,
Edited by: user7036480 on Dec 11, 2008 4:22 PMuser7036480 wrote:
-Has anyone else experienced this type of behavior? Yes, described in that issue while "log errors into g_logtest_err(1) reject limit 1" (is it you?)
-Is it a bug in oracle log errors functionallity?? Raise a SR to know.
-Is there any workaround to use oracle log errors functionality to catch untrimmed data?No.
Nicolas. -
Does oracle log general errors
Dear experts,
I am using Oracle 11.2.0.3. I am researching on random ORA-00900: invalid SQL statement error that we are seeing in production. Does oracle log such errors in alert.log or any tables? If not can we configure to log such errors?
Thanks.Dont understand.... you are seeing ORA-00900 in production but don't know where to search this error? where do you see it?It is being logged from application in event log which I do not have access to. I wanted to check if oracle also logs such error some where.
SQL Banner : SQL*Plus: Release 11.2.0.1.0 Production on Wed Nov 28 12:12:25 2012
SQL :
SELECT
overload,
DECODE (
position,
0,
'RETURN_VALUE',
NVL (argument_name, CHR (0))
) AS name,
DECODE (
in_out,
'IN', 1,
'IN/OUT', 3,
'OUT', DECODE (argument_name, NULL, 6, 2),
1
) AS direction,
DECODE (
data_type,
'BFILE', 101,
'BLOB', 102,
'BYTE', 103,
'CHAR', 104,
'CLOB', 105,
'DATE', 106,
'DECIMAL', 107,
'DOUBLE', 108,
'INT16', 111,
'INT32', 112,
'INT64', 113,
'INTERVAL DAY TO SECOND', 114,
'INTERVAL YEAR TO MONTH', 115,
'LONG', 109,
'LONG RAW', 110,
'NCHAR', 117,
'NCLOB', 116,
'NVARCHAR2', 119,
'RAW', 120,
'REF CURSOR', 121,
'SINGLE', 122,
'TIMESTAMP', 123,
'TIMESTAMP WITH LOCAL TIME ZONE', 124,
'TIMESTAMP WITH TIME ZONE', 125,
'VARCHAR2', 126,
'XMLTYPE', 127,
'NUMBER', 107,
126
) AS oracleType,
DECODE (
data_type,
'BLOB', 0,
'CHAR', 0,
'CLOB', 0,
'LONG RAW', 0,
'NCHAR', 0,
'NCLOB', 0,
'NVARCHAR2', 0,
'RAW', 0,
'VARCHAR2', 2048,
0
) AS length,
NVL (data_precision, 255) AS precision,
NVL (data_scale, 255) AS scale
FROM
all_arguments
WHERE
data_level = 0
AND data_type IS NOT NULL
AND owner = :schemaName
AND package_name = :packageName
AND object_name = :methodName
ORDER BY
overload, position
******************** EXCEPTION PROPERTIES ********************
Errors: Oracle.DataAccess.Client.OracleErrorCollection
Source: Oracle Data Provider for .NET
Number: 900
ErrorCode: -2147467259
Data: System.Collections.ListDictionaryInternal
TargetSite: Void HandleErrorHelper(Int32, Oracle.DataAccess.Client.OracleConnection, IntPtr, Oracle.DataAccess.Client.OpoSqlValCtx*, System.Object, System.String, Boolean)
Edited by: spur230 on Nov 28, 2012 12:13 PM -
RMAN-08591: WARNING: invalid archived log deletion policy
Hi,
My database is 11.2.0.1 running on OEL 5.
We have stndby database running on other server, i have configured rman like this
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
But while running db backup, getting the error
RMAN-08591: WARNING: invalid archived log deletion policy.
RMAN retention policy is set to redundancy 1.
The archive files are deleting even though they are not applied on standby.
Thanks,kkrm333 wrote:
Hi,
My database is 11.2.0.1 running on OEL 5.
We have stndby database running on other server, i have configured rman like this
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
But while running db backup, getting the error
RMAN-08591: WARNING: invalid archived log deletion policy.
RMAN retention policy is set to redundancy 1.
The archive files are deleting even though they are not applied on standby.
Thanks,
bcm@bcm-laptop:~$ oerr rman 8591
8591, 3, "WARNING: invalid archived log deletion policy"
// *Cause: An invalid ARCHIVELOG DELETION POLICY was supplied. The archived
// log deletion policy was APPLIED but there was no mandatory
// archived log destinations.
// *Action: One of the following:
// 1) Change archived log deletion policy using CONFIGURE command
// 2) Make one or more of standby destination as MANDATORY. -
ODI logs deleted after scenario refresh
Hi,
I'm using a load plan which starts half a dozen scenarios.
All scenarios are packages scenarios version 001.
When I modify any package I regenerate any related scenario.
(Basically I'm not using the versioning system supplied by ODI, but I need to generate scenarios anyhow because ODI does not allow packages in load plans).
So fa so good, everything works despite an issue with the logs.
Every time I regenerate a scenario, ODI deletes all the related logs.
To me, this does not make sense.
In example I wuold like to see if the "new" scenario impacts loading times, but I have no more "old" scenario logs.
Any way to avoid logs deletion after scenarios regeneration?
ODI 11.1.1.6
Regards,
CorradoHi,
thank you for pointing it out, but the user parameter "Delete linked sessions with scenarios" is already set to "No".
(Also the docs seems to say this parameter only applies to manual deletion of scenarios from GUI).
Regards,
Corrado -
Hello experts,
what is oracle logs ? how these are helpful to identify the error and error messages ?
thanks in advance
yashyash_08031983 wrote:
i take an example..
i have a function or procedure, i executed it in some pl/sql block. and its generating some error.
if i want to check, where is problem or which error generated, can i check it from logs.
i want to use the oracle logs in daily practice while writing procedure and function or pl/sql pr sql statements.
That error which is generated by some user-defined program is not an error that would be considered to go into the database logs(alert.log etc) but it would be passed on to the calling environment and based on that environment, that error details would be displayed. Have you not seen such error details shown while doing the coding of such programs? If you need to go more than that you would need to include some additional bits of code like dbms_utility and may have to call it's procedure format_error_backtrace .
Just my 2 cents.
Aman.... -
How to - write oracle logs to syslog
Is there a method for writing some/all of the logs produced by oracle in syslog format? In the
SANS oracle security class it was suggested to write oracle logs using syslog on unix systems.
I am running 10g on RedHat.
Has anyone done this before? Any pointers to reference material? My google search for
variations of - syslog oracle unix logs was not helpful.
thanks
THeresaIs there a method for writing some/all of the logs produced by oracle in syslog format?What type of logs do you mean?
Maybe following link will help you (Documentation - New Features):
http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14266/whatsnew.htm#sthref34
This is example if you want put all messages from alert log to syslog.
You could use "logger" command for this purpose.
For example create startup script (in /etc/init.d/ directory) which will execute (as root) following command:
tail -f /path/to/oracle/bdump/alert_<SID>.log | logger &Now all actions will be logged in alert log and also in system logs.
This example has at least one disadvantage:
If you remove alert log tail will loose the pointer for file - no new messages in system logs.
For more info execute "man logger" from shell. -
Could anybody update where can we find oracle log files which stores log-in details (specially erros) when log thro' SQLPlus or OEM
and oracle service issue logs.
Thax
ShabarHi,
If you are encountring any network related errors you can find the errors in sqlnet.log (<<ORACLE_HOME>>\NETWORK\LOG).
But for program related errors, you have spool the output to a text file manually.
Eg:
SQL>spool logfile.txt
SQL> select * fromtab;
SQL> spool off
In this example, the output will be saved in logfile.txt.
Regards,
Satheesh -
Logical standby | archive log deleted | how to remove gap ???
hi gurus...
i have problem on logical standby
by mistake standby log coming to logical standby has been deleted , now how to fill up the gap ???
ON STANDBY
SEQUENCE# FIRST_CHANGE# NEXT_CHANGE# APPLIED
228 674847 674872 YES
229 674872 674973 CURRENT
230 674973 674997 NO
231 674997 675023 NO
232 675023 675048 NO
233 675048 675109 NO
234 675109 675135 NO
235 675135 675160 NO
236 675160 675183 NO
237 675183 675208 NO
238 675208 675232 NO
239 675232 675257 NO
240 675257 675282 NO
241 675282 675382 NO
242 675382 675383 NO
243 675383 675650 NO
244 675650 675652 NO
245 675652 675670 NO
246 675670 675688 NO
247 675688 675791 NO
248 675791 678524 NO
archive log are shipping to standby location also and getting registered
ALERT LOG OF STANDBY
Fri May 7 12:25:36 2010
Primary database is in MAXIMUM PERFORMANCE mode
RFS[21]: Successfully opened standby log 5: '/u01/app/oracle/oradata/BEST/redo05.log'
Fri May 7 12:25:37 2010
RFS LogMiner: Registered logfile [u01/app/oracle/flash_recovery_area/BEST/archivelog/archBEST_248_1_715617824.dbf] to LogMiner session id [1]
but i dont have standby log after 229 sequence ...
ON PRIMARY
SYS@TEST AS SYSDBA> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /u01/app/oracle/flash_recovery_area/TEST/standlogOldest online log sequence 247
Next log sequence to archive 249
Current log sequence 249
what to do next to apply sequences and bring both in sync.
please help me ,,,,
Edited by: user12281508 on May 7, 2010 9:45 AMthanks for response.
no its pure logical standby
i have tried to ftp the archive logs of primary to standby and applied manually
SYS@BEST AS SYSDBA> alter database register logfile '/u01/app/oracle/flash_recovery_area/BEST/archivelog/archBEST_230_1_715617824.dbf';
alter database register logfile '/u01/app/oracle/flash_recovery_area/BEST/archivelog/archBEST_230_1_715617824.dbf'
ERROR at line 1:
ORA-01289: cannot add duplicate logfile
SYS@BEST AS SYSDBA> alter database register logfile '/u01/app/home/archTEST_230_1_715617824.dbf';
alter database register logfile '/u01/app/home/archTEST_230_1_715617824.dbf'
ERROR at line 1:
ORA-01289: cannot add duplicate logfile
any other way ???? -
Hi
I Have deleted 3 of my archivedlogs manually,but they have not marked deleted in V$ARCHIVED_LOG .
so when i'm trying to backup my remained archived logs in RMAN.It doesn't back them up.because RMAN has not been notified with thw deletion.So..
How can I notify RMAN & mark them deleted in V$ARCHIVED_LOG.
Thankshi
use crosscheck
SQL> select name from v$archived_log;
NAME
D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2006_11_23\O1_MF_1_
25_2PC98N8M_.ARC
D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2006_11_23\O1_MF_1_
26_2PC9CZF4_.ARC
C:\>del D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2006_11_23\
*.ARC
C:\>sqlplus "sys as sysdba"
SQL*Plus: Release 10.1.0.2.0 - Production on Thu Nov 23 18:54:39 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select name from v$archived_log;
NAME
D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2006_11_23\O1_MF_1_
25_2PC98N8M_.ARC
D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2006_11_23\O1_MF_1_
26_2PC9CZF4_.ARC
SQL> host rman target=sys
Recovery Manager: Release 10.1.0.2.0 - Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
target database Password:
connected to target database: ORCL (DBID=1134976990)
RMAN> crosscheck archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=215 devtype=DISK
validation failed for archived log
archive log filename=D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELO
G\2006_11_23\O1_MF_1_25_2PC98N8M_.ARC recid=1 stamp=607282901
validation failed for archived log
archive log filename=D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELO
G\2006_11_23\O1_MF_1_26_2PC9CZF4_.ARC recid=2 stamp=607283007
Crosschecked 2 objects
RMAN> delete expired archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=215 devtype=DISK
List of Archived Log Copies
Key Thrd Seq S Low Time Name
1 1 25 X 23-NOV-06 D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\OR
CL\ARCHIVELOG\2006_11_23\O1_MF_1_25_2PC98N8M_.ARC
2 1 26 X 23-NOV-06 D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\OR
CL\ARCHIVELOG\2006_11_23\O1_MF_1_26_2PC9CZF4_.ARC
Do you really want to delete the above objects (enter YES or NO)? yes
deleted archive log
archive log filename=D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELO
G\2006_11_23\O1_MF_1_25_2PC98N8M_.ARC recid=1 stamp=607282901
deleted archive log
archive log filename=D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELO
G\2006_11_23\O1_MF_1_26_2PC9CZF4_.ARC recid=2 stamp=607283007
Deleted 2 EXPIRED objects
SQL> select name,deleted from v$archived_log;
NAME
DEL
YES
YESHope this helps
Taj -
R12 Apps logs deletion.
Hi,
Please assist me about to delete the logs from following paths:
/d01/oracle/TEST/inst/apps/TEST_erpappsdb/logs/ora/10.1.2/reports/cache --------> 67 GB
/d01/oracle/TEST/inst/apps/TEST_erpappsdb/logs/appl/conc/out ----------> 67 GB
I have checked to delete the logs from above paths, on testing machine and but logs are created again with same size.
What should I do, I am new DBA?
Thanks,
FaziarainHi Fazi,
have checked to delete the logs from above paths, on testing machine and but logs are created again with same size.You can refer the following ML doc,
[Reports Cache Directory in Oracle E-Business R12 is Growing Rapidly|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=859255.1]
[Reducing Your Oracle E-Business Suite Data Footprint using Archiving, Purging, and Information Lifecycle Management|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=752322.1]
Thanks,
Anchorage :) -
RMAN,Data Guard and Archive log deletion
Our DG environment is running Oracle 11g R2
we have a 3 node DG environment with
A being the Primary
B and C being Active Data Guard Standbys
Backups are taken off of B and go directly to tape.
Standby Redo Logs and Fast Recovery Area are being used
Taking recommendation from "Using Recovery Manager with Oracle Data Guard in Oracle Database 10g"
RMAN Setting on Primary ("A")
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY
RMAN Setting on Standby ("B") where Backup is done
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE
RMAN Setting on other Standby ("C")
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY
How can we know what archive logs are eligible to be deleted from "A" and "C" ?
When does the delete take place?
How can we tell when the archive logs are being deleted from "A" and "C" ?Dear user10260925,
The documentation that you have read is reliable but insufficient.
The Oracle can manage the archivelog directory and knows which one is eligible for the deletion. Those stuff you have posted in here has been taken from the online documentation and is supported and can be used when the Oracle knows and manages the archivelogs. That is simply called the flash recovery area. Please read about the FRA in this very moment.
Under normal circumstances people in the industry uses some scripts to achive the archivelog deletion on the standby system.
Here is a useful example to you;
# Remove old archivelogs
00,30 * * * * /home/oracle/scripts/delete_applied_redo_logs_OPTSTBY.sh
vals3:/home/oracle#cat /home/oracle/scripts/delete_applied_redo_logs_OPTSTBY.sh
export ORACLE_SID=optstby
export ORACLE_HOME=/oracle/product/10.2.0/db_1
cd /db/optima/archive/OPTPROD/archivelog
/oracle/product/10.2.0/db_1/bin/sqlplus "/ as sysdba" @delete_applied_redo_logs.sql
grep arc delete_applied_redo_logs.lst > delete_applied_redo_logs_1.sh
chmod 755 delete_applied_redo_logs_1.sh
sh delete_applied_redo_logs_1.sh
rm delete_applied_redo_logs_1.sh
rm delete_applied_redo_logs.lst
vals3:/home/oracle#cd /db/optima/archive/OPTPROD/archivelog
vals3:/db/optima/archive/OPTPROD/archivelog#cat delete_applied_redo_logs.sql
set echo off
set heading off
spool /db/optima/archive/OPTPROD/archivelog/delete_applied_redo_logs.lst
select 'rm -f ' || name from v$archived_log where applied = 'YES';
spool off
exit
vals3:/db/optima/archive/OPTPROD/archivelog#Hope That Helps.
Ogan
Maybe you are looking for
-
Not getting notifications from messaging and email apps
Hi. I do not receive email and SMS notifications in most cases. I have to manually open the apps and check if I've received any text messages. Also I've been using the OpenWapp client for WhatsApp. Sometimes, I do receive notifications from the app,
-
Mnadrake8.0 and Oracle 8.1.6 works with 6 simple steps
I have searched through countless posts to get throught the install and have come to three simple steps to get running: 1) Load Mandrake 8.0 out of the box. 2) Update the glib-c libs through the mandrake web site http://www.linux-mandrake.com/en/secu
-
i created GENERIC datasource and i am trying to fill the values in that datasource using Fm. Within my FM i want to call FM- CRM_ORDER_READ to get the values. now when u execute CRM_ORDER_READ, i want the data from segments ET_ORDERADM_H : GUID ET_O
-
Safari keeps crashing...In fact, it does not open.
Process: Safari [210] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 6.0 (7536.25) Build Info: WebBrowser-7534056005000000~6 Code Type: X86-64 (Native) Parent Proc
-
Slow camera, Distorted Sound
Hi, so recently i think my flash stoped working properly, BUT only when i use it on some website where i use my webcam, like stickam.com, blogtv.com; and even Youtube when you record directly from the website, and i don't know why. The when i see me