Automatic archiving of db2diag.log
Good Morning everyone,
I have a question regarding the db2diag.log. After a couple of month this logfile could increase dramatically. In order to make root cause analysis easier I would like to archive the file every month and clean it up to get a better overview in it.
Is there a possibility do to this via DB2 (Alertlog archiving) or should I realize this with a planned Batchjob every month.
Greetings
Marco
Hello Marco,
You can archive the db2diag.log using the db2diag tool. You can specify the -A or -archive <dirname> option:
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.admin.cmd.doc/doc/r0011728.html
-A | -archive dirName
Archives a diagnostic log file. When this option is specified, all other options are ignored. If one or more file names are specified, each file is processed individually. A timestamp, in the format YYYY-MM-DD-hh.mm.ss, is appended to the file name.
You can specify the name of the file and directory where it is to be archived. If the directory is not specified, the file is archived in the directory where the file is located and the directory name is extracted from the file name.
If you specify a directory but no file name, the current directory is searched for the db2diag.log file. If found, the file will be archived in the specified directory. If the file is not found, the directory specified by the DIAGPATH configuration parameter is searched for the db2diag.log file. If found, it is archived in the directory specified.
If you do not specify a file or a directory, the current directory is searched for the db2diag.log file. If found, it is archived in the current directory. If the file is not found, the directory specified by the DIAGPATH configuration parameter is searched for the db2diag.log file. If found, it is archived in the directory specified by the DIAGPATH configuration parameter.
Regards,
Adam Wilson
SAP development Support
Similar Messages
-
"Database log mode" & "Automatic archival"
I was asked to do the below
"Database log mode" should be set to
"No Archive Mode" now.
Do not mix up "Database log mode" with
"Automatic archival".
Can you please tell me how to "disable databse log mode", with Automatic Archival enabled.
Regards,
SusanFrom documentation:
ARCHIVELOG mode
The mode of the database in which Oracle copies filled online redo logs to disk. Specify the mode at database creation or by using the ALTER DATABASE statement. You can enable automatic archiving either dynamically using the ALTER SYSTEM statement or by setting the initialization parameter LOG_ARCHIVE_START to TRUE.
Running the database in ARCHIVELOG mode has several advantages over NOARCHIVELOG mode. You can:
* Back up the database while it is open and being accessed by users.
* Recover the database to any desired point in time.
To protect the ARCHIVELOG mode database in case of failure, back up the archived logs.
Configuring ARCHIVELOG Mode For the Database<a>
<br>
Or you can check this tutorial from Oracle:
Disabling Automatic Archiving
<br>
<br>
Or something like this:<br>
sqlplus /nolog
connect / as sysdba
shutdown
startup mount exclusive
alter database noarchivelog
alter database open
<br>
And I don't know if it's needed to have automatic archival enabled since the database will not be in archive mode. -
I am learning Oracle on 9i, try to set database as automatic archive log but always failed. pls help.
Thanks
Init.ora:
# Redo Log and Recovery
log_archive_start = true
log_archive_dest = %ORACLE_HOME%\database\%%ORACLE_SID%%\archive
log_archive_format = "%%ORACLE_SID%%%T%TS%S.ARC"
here the info:
SQL> archive log list
Database log mode Archive Mode
Automatic archival Disabled
Archive destination D:\oracle\ora90\RDBMS
Oldest online log sequence 12
Next log sequence to archive 14
Current log sequence 14I am learning Oracle on 9i, try to set database as automatic archive log but always failed. pls help.
Thanks
Init.ora:
# Redo Log and Recovery
log_archive_start = true
log_archive_dest = %ORACLE_HOME%\database\%%ORACLE_SID%%\archive
log_archive_format = "%%ORACLE_SID%%%T%TS%S.ARC"
here the info:
SQL> archive log list
Database log mode Archive Mode
Automatic archival Disabled
Archive destination D:\oracle\ora90\RDBMS
Oldest online log sequence 12
Next log sequence to archive 14
Current log sequence 14 I think you're close to getting it working, you have all of the init.ora parameters set. If you do the following in SQL Plus it should work:
SHUTDOWN IMMEDIATE
STARTUP MOUNT <SID> EXCLUSIVE
ALTER DATABASE <SID> ARCHIVELOG
SHUTDOWN IMMEDIATE
STARTUP
Then run ARCHIVE LOG LIST to verify it worked. -
Fast growing db2diag.log (FP4 V9.5)
Does anyone have experiences with V9.5 FP4SAP?
We have implemented this FP4 last week (from FP2a). Since this a db2diag.log of about 1MB were written (and the system usage is really low).
We have another system on FP2a which is used heavier (as a productive system) and the db2diag.log is about 2,5 MB within two months.
We have checked SAP note 1086130 for DB parameters and did not find a required change (from FP2a to FP4).
Any idea is welcome!
Best regards.db2diag.log extract 2009-08-02 23:00-23:59
2009-08-02-23.24.20.577179+120 I1019336A362 LEVEL: Warning
PID : 602270 TID : 4114 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000
EDUID : 4114 EDUNAME: db2logmgr (MES) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3108
MESSAGE : Started archive for log file S0001678.LOG.
2009-08-02-23.24.21.914535+120 I1019699A422 LEVEL: Warning
PID : 602270 TID : 4114 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000
EDUID : 4114 EDUNAME: db2logmgr (MES) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3180
MESSAGE : Completed archive for log file S0001678.LOG to TSM chain 0 from
/db2/MES/log_dir/NODE0000/.
2009-08-02-23.28.53.621596+120 I1020122A483 LEVEL: Event
PID : 602270 TID : 3342 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000 DB : MES
APPHDL : 0-8 APPID: *LOCAL.DB2.090729131318
AUTHID : MESADM
EDUID : 3342 EDUNAME: db2stmm (MES) 0
FUNCTION: DB2 UDB, config/install, sqlfLogUpdateCfgParam, probe:20
CHANGE : STMM CFG DB MES: "Locklist" From: "3712" <automatic> To: "3552" <automatic>
2009-08-02-23.28.53.627724+120 I1020606A545 LEVEL: Event
PID : 602270 TID : 3342 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000 DB : MES
APPHDL : 0-8 APPID: *LOCAL.DB2.090729131318
AUTHID : MESADM
EDUID : 3342 EDUNAME: db2stmm (MES) 0
FUNCTION: DB2 UDB, access plan manager, sqlra_resize_pckcache, probe:150
CHANGE : APM : Package Cache : FROM "5208760" : TO "4191641" : success
IMPACT : None
DATA #1 : String, 29 bytes
Package Cache Resized (bytes)
2009-08-02-23.28.53.629400+120 I1021152A485 LEVEL: Event
PID : 602270 TID : 3342 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000 DB : MES
APPHDL : 0-8 APPID: *LOCAL.DB2.090729131318
AUTHID : MESADM
EDUID : 3342 EDUNAME: db2stmm (MES) 0
FUNCTION: DB2 UDB, config/install, sqlfLogUpdateCfgParam, probe:20
CHANGE : STMM CFG DB MES: "Pckcachesz" From: "1311" <automatic> To: "1055" <automatic>
2009-08-02-23.28.54.510395+120 I1021638A507 LEVEL: Info
PID : 602270 TID : 3342 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000 DB : MES
APPHDL : 0-8 APPID: *LOCAL.DB2.090729131318
AUTHID : MESADM
EDUID : 3342 EDUNAME: db2stmm (MES) 0
FUNCTION: DB2 UDB, buffer pool services, sqlbAlterBufferPoolAct, probe:90
MESSAGE : Altering bufferpool "IBMDEFAULTBP" From: "19552" <automatic> To:
"15648" <automatic>
2009-08-02-23.29.24.543188+120 I1022146A494 LEVEL: Event
PID : 602270 TID : 3342 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000 DB : MES
APPHDL : 0-8 APPID: *LOCAL.DB2.090729131318
AUTHID : MESADM
EDUID : 3342 EDUNAME: db2stmm (MES) 0
FUNCTION: DB2 UDB, config/install, sqlfLogUpdateCfgParam, probe:20
CHANGE : STMM CFG DB MES: "Database_memory" From: "205060" <automatic> To: "185520" <automatic>
2009-08-02-23.29.54.555357+120 I1022641A483 LEVEL: Event
PID : 602270 TID : 3342 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000 DB : MES
APPHDL : 0-8 APPID: *LOCAL.DB2.090729131318
AUTHID : MESADM
EDUID : 3342 EDUNAME: db2stmm (MES) 0
FUNCTION: DB2 UDB, config/install, sqlfLogUpdateCfgParam, probe:20
CHANGE : STMM CFG DB MES: "Locklist" From: "3552" <automatic> To: "3392" <automatic>
2009-08-02-23.29.54.559234+120 I1023125A545 LEVEL: Event
PID : 602270 TID : 3342 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000 DB : MES
APPHDL : 0-8 APPID: *LOCAL.DB2.090729131318
AUTHID : MESADM
EDUID : 3342 EDUNAME: db2stmm (MES) 0
FUNCTION: DB2 UDB, access plan manager, sqlra_resize_pckcache, probe:150
CHANGE : APM : Package Cache : FROM "4191641" : TO "3937361" : success
IMPACT : None
DATA #1 : String, 29 bytes
Package Cache Resized (bytes)
2009-08-02-23.29.54.560050+120 I1023671A484 LEVEL: Event
PID : 602270 TID : 3342 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000 DB : MES
APPHDL : 0-8 APPID: *LOCAL.DB2.090729131318
AUTHID : MESADM
EDUID : 3342 EDUNAME: db2stmm (MES) 0
FUNCTION: DB2 UDB, config/install, sqlfLogUpdateCfgParam, probe:20
CHANGE : STMM CFG DB MES: "Pckcachesz" From: "1055" <automatic> To: "991" <automatic>
2009-08-02-23.29.55.097984+120 I1024156A507 LEVEL: Info
PID : 602270 TID : 3342 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000 DB : MES
APPHDL : 0-8 APPID: *LOCAL.DB2.090729131318
AUTHID : MESADM
EDUID : 3342 EDUNAME: db2stmm (MES) 0
FUNCTION: DB2 UDB, buffer pool services, sqlbAlterBufferPoolAct, probe:90
MESSAGE : Altering bufferpool "IBMDEFAULTBP" From: "15648" <automatic> To:
"13914" <automatic>
2009-08-02-23.30.25.137828+120 I1024664A494 LEVEL: Event
PID : 602270 TID : 3342 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000 DB : MES
APPHDL : 0-8 APPID: *LOCAL.DB2.090729131318
AUTHID : MESADM
EDUID : 3342 EDUNAME: db2stmm (MES) 0
FUNCTION: DB2 UDB, config/install, sqlfLogUpdateCfgParam, probe:20
CHANGE : STMM CFG DB MES: "Database_memory" From: "185520" <automatic> To: "176480" <automatic>
2009-08-02-23.41.12.098793+120 I1025159A362 LEVEL: Warning
PID : 602270 TID : 4114 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000
EDUID : 4114 EDUNAME: db2logmgr (MES) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3108
MESSAGE : Started archive for log file S0001679.LOG.
2009-08-02-23.41.13.334331+120 I1025522A422 LEVEL: Warning
PID : 602270 TID : 4114 PROC : db2sysc 0
INSTANCE: db2mes NODE : 000
EDUID : 4114 EDUNAME: db2logmgr (MES) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3180
MESSAGE : Completed archive for log file S0001679.LOG to TSM chain 0 from
/db2/MES/log_dir/NODE0000/. -
How do I manually archive 1 redo log at a time?
The database is configured in archive mode, but automatic archiving is turned off.
For both Oracle 901 and 920 on Windows, when I try to manually archive a single redo log, the database
archives as many logs as it can up to the log just before the current log:
For example:
SQL> select * from v$log order by sequence#;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
1 1 14 104857600 1 NO INACTIVE 424246 19-JAN-05
2 1 15 104857600 1 NO INACTIVE 425087 28-MAR-05
3 1 16 104857600 1 NO INACTIVE 425088 28-MAR-05
4 1 17 512000 1 NO INACTIVE 425092 28-MAR-05
5 1 18 512000 1 NO INACTIVE 425100 28-MAR-05
6 1 19 512000 1 NO CURRENT 425102 28-MAR-05
6 rows selected.
SQL> alter system archive log next;
System altered.
SQL> select * from v$log order by sequence#;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
1 1 14 104857600 1 YES INACTIVE 424246 19-JAN-05
2 1 15 104857600 1 YES INACTIVE 425087 28-MAR-05
3 1 16 104857600 1 YES INACTIVE 425088 28-MAR-05
4 1 17 512000 1 YES INACTIVE 425092 28-MAR-05
5 1 18 512000 1 NO INACTIVE 425100 28-MAR-05
6 1 19 512000 1 NO CURRENT 425102 28-MAR-05
See - instead of only 1 log being archive, 4 of them were. Oracle behaves the same way if I use the "sequence" option:
SQL> select * from v$log order by sequence#;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
1 1 14 104857600 1 NO INACTIVE 424246 19-JAN-05
2 1 15 104857600 1 NO INACTIVE 425087 28-MAR-05
3 1 16 104857600 1 NO INACTIVE 425088 28-MAR-05
4 1 17 512000 1 NO INACTIVE 425092 28-MAR-05
5 1 18 512000 1 NO INACTIVE 425100 28-MAR-05
6 1 19 512000 1 NO CURRENT 425102 28-MAR-05
6 rows selected.
SQL> alter system archive log next;
System altered.
SQL> select * from v$log order by sequence#;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
1 1 14 104857600 1 YES INACTIVE 424246 19-JAN-05
2 1 15 104857600 1 YES INACTIVE 425087 28-MAR-05
3 1 16 104857600 1 YES INACTIVE 425088 28-MAR-05
4 1 17 512000 1 YES INACTIVE 425092 28-MAR-05
5 1 18 512000 1 NO INACTIVE 425100 28-MAR-05
6 1 19 512000 1 NO CURRENT 425102 28-MAR-05
Is there some default system configuration property telling Oracle to archive as many logs as it can?
Thanks,
DGRThanks Yoann (and Syed Jaffar Jaffar Hussain too),
but I don't have a problem finding the group to archive or executing the alter system archive log command.
My problem is that Oracle doesn't work as I expect it.
This comes from the Oracle 9.2 online doc:
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_23a.htm#2053642
"Specify SEQUENCE to manually archive the online redo log file group identified by the log sequence number integer in the specified thread."
This implies that Oracle will only archive the log group identified by the log sequence number I specify in the alter system archive log sequence statement. However, Oracle is archiving almost all of the log groups (see my first post for an example).
This appears to be a bug, unless there is some other system parameter that is configured (by default) to allow Oracle to archive as many log groups as possible.
As to the reason why - it is an application requirement. The Oracle db must be in archive mode, automatic archiving must be disabled and the application must control online redo log archiving.
DGR -
Why it automatically recover current redo log in RMAN command window?
Firstly, I restore controlfile and datafiles from a backupset.
Then when I recover database in RMAN command window like below:
RMAN> recover database;
Starting recover at 15-AUG-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
starting media recovery
archive log thread 1 sequence 9 is already on disk as file /u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_9_90sd0slz_.arc
archive log thread 1 sequence 10 is already on disk as file
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_10_90sd0tsb_.arc
archive log thread 1 sequence 11 is already on disk as file
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_11_90sd110b_.arc
archive log thread 1 sequence 12 is already on disk as file
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_12_90sd2ksr_.arc
archive log thread 1 sequence 13 is already on disk as file
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_13_90sd2mc6_.arc
archive log thread 1 sequence 14 is already on disk as file
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_14_90sd2qrm_.arc
archive log thread 1 sequence 15 is already on disk as file
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_15_90sd2s0w_.arc
archive log thread 1 sequence 16 is already on disk as file /u01/app/oracle/oradata/lonion/redo03.log
archive log filename=/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_9_90sd0slz_.arc thread=1 sequence=9
archive log filename=/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_10_90sd0tsb_.arc thread=1 sequence=10
archive log filename=/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_11_90sd110b_.arc thread=1 sequence=11
archive log filename=/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_12_90sd2ksr_.arc thread=1 sequence=12
archive log filename=/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_13_90sd2mc6_.arc thread=1 sequence=13
archive log filename=/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_14_90sd2qrm_.arc thread=1 sequence=14
archive log filename=/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_15_90sd2s0w_.arc thread=1 sequence=15
archive log filename=/u01/app/oracle/oradata/lonion/redo03.log thread=1 sequence=16
media recovery complete, elapsed time: 00:00:04
Finished recover at 15-AUG-13
RMAN>
But, when I recover database in SQL*Plus command window like below:
[oracle@lonion ~]$ uniread sqlplus /nolog
[uniread] Loaded history (2178 lines)
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Aug 15 19:25:38 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected.
SQL>
SQL> recover database;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
SQL> recover database using backup controlfile;
ORA-00279: change 2147842454 generated at 08/15/2013 18:34:28 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_9_%u_.a
rc
ORA-00280: change 2147842454 for thread 1 is in sequence #9
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00279: change 2147842651 generated at 08/15/2013 18:40:25 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_10_%u_.
arc
ORA-00280: change 2147842651 for thread 1 is in sequence #10
ORA-00278: log file
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_9_90sd
0slz_.arc' no longer needed for this recovery
ORA-00279: change 2147842653 generated at 08/15/2013 18:40:26 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_11_%u_.
arc
ORA-00280: change 2147842653 for thread 1 is in sequence #11
ORA-00278: log file
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_10_90s
d0tsb_.arc' no longer needed for this recovery
ORA-00279: change 2147842656 generated at 08/15/2013 18:40:32 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_12_%u_.
arc
ORA-00280: change 2147842656 for thread 1 is in sequence #12
ORA-00278: log file
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_11_90s
d110b_.arc' no longer needed for this recovery
ORA-00279: change 2147842684 generated at 08/15/2013 18:41:21 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_13_%u_.
arc
ORA-00280: change 2147842684 for thread 1 is in sequence #13
ORA-00278: log file
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_12_90s
d2ksr_.arc' no longer needed for this recovery
ORA-00279: change 2147842686 generated at 08/15/2013 18:41:23 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_14_%u_.
arc
ORA-00280: change 2147842686 for thread 1 is in sequence #14
ORA-00278: log file
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_13_90s
d2mc6_.arc' no longer needed for this recovery
ORA-00279: change 2147842689 generated at 08/15/2013 18:41:27 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_15_%u_.
arc
ORA-00280: change 2147842689 for thread 1 is in sequence #15
ORA-00278: log file
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_14_90s
d2qrm_.arc' no longer needed for this recovery
ORA-00279: change 2147842691 generated at 08/15/2013 18:41:28 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_16_%u_.
arc
ORA-00280: change 2147842691 for thread 1 is in sequence #16
ORA-00278: log file
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_15_90s
g0or9_.arc' no longer needed for this recovery
ORA-00279: change 2147842986 generated at 08/15/2013 19:14:29 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_17_%u_.
arc
ORA-00280: change 2147842986 for thread 1 is in sequence #17
ORA-00278: log file
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_16_90s
g0os5_.arc' no longer needed for this recovery
ORA-00308: cannot open archived log
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_17_%u_
.arc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
SQL> recover database using backup controlfile;
ORA-00279: change 2147842986 generated at 08/15/2013 19:14:29 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_08_15/o1_mf_1_17_%u_.
arc
ORA-00280: change 2147842986 for thread 1 is in sequence #17
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/u01/app/oracle/oradata/lonion/redo01.log ---- Yon see, proceeding this process, it can't automatically apply the current redo log.
Log applied.
Media recovery complete.
SQL>
Question Coming:
Now, my question is that 「Why it automatically recover current redo log in RMAN command window but not in SQL*Plus」?
BTW: Please pay attention to the red font.It also seems not work.
SQL> recover automatic database using backup controlfile;
ORA-00279: change 2148632889 generated at 09/26/2013 12:45:22 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_09_26/o1_mf_1_48_%u_.
arc
ORA-00280: change 2148632889 for thread 1 is in sequence #48
ORA-00278: log file
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_09_26/o1_mf_1_48_%u_
.arc' no longer needed for this recovery
ORA-00308: cannot open archived log
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_09_26/o1_mf_1_48_%u_
.arc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_09_26/o1_mf_1_48_%u_
.arc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-00308: cannot open archived log
'/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_09_26/o1_mf_1_48_%u_
.arc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file
or directory
Additional information: 3
SQL>
It must specify the redo log.
SQL> recover database using backup controlfile;
ORA-00279: change 2148632889 generated at 09/26/2013 12:45:22 needed for thread
1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/LONION/archivelog/2013_09_26/o1_mf_1_48_%u_.
arc
ORA-00280: change 2148632889 for thread 1 is in sequence #48
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/u01/app/oracle/oradata/lonion/redo02.log
Log applied.
Media recovery complete.
SQL> -
How to enable automatic archiving?
Hi!
This is about Oracle 10.2.0.4 on Solaris.
First the most important information.
SQL>archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination ?/dbs/arch
Oldest online log sequence 12
Next log sequence to archive 12
Current log sequence 17
SQL> show parameter recov
NAME TYPE VALUE
db_recovery_file_dest string /data/MVS_P0/reco01
db_recovery_file_dest_size big integer 98G
recovery_parallelism integer 0
SQL> show parameter archive
NAME TYPE VALUE
archive_lag_target integer 0
log_archive_config string
log_archive_dest string
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_2 string
log_archive_dest_3 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
NAME TYPE VALUE
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_dest_state_1 string enable
log_archive_dest_state_10 string enable
log_archive_dest_state_2 string enable
log_archive_dest_state_3 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
NAME TYPE VALUE
log_archive_dest_state_9 string enable
log_archive_duplex_dest string
log_archive_format string %t_%s_%r.dbf
log_archive_local_first boolean TRUE
log_archive_max_processes integer 2
log_archive_min_succeed_dest integer 1
log_archive_start boolean FALSE
log_archive_trace integer 0
remote_archive_enable string true
standby_archive_dest string ?/dbs/arch
The problem
When I do a 'alter system log switch' the lines below are shown in the alertlog:
Errors in file /data/MVS_P0/admin/bdump/mvs_r1_arc0_12115.trc:
ORA-16014: Message 16014 not found; No message file for product=RDBMS, facility=ORA; arguments: [6] [12]
ORA-00312: Message 312 not found; No message file for product=RDBMS, facility=ORA; arguments: [6] [1] [data/MVS_P0/redo01/log06.rdo]
SQL> select recid, completion_time, name from v$archived_log
RECID COMPLETIO NAME
1 23-JUL-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_07_23/o1_mf_1_1_48gf98jq_.arc
2 23-JUL-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_07_23/o1_mf_1_2_48gfjvq1_.arc
3 28-JUL-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_07_28/o1_mf_1_3_48vf0cns_.arc
4 02-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_02/o1_mf_1_4_497pys3n_.arc
5 06-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_06/o1_mf_1_5_49mfqbrb_.arc
6 11-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_11/o1_mf_1_6_4b16ml0y_.arc
7 17-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_17/o1_mf_1_7_4bhd48pc_.arc
8 21-AUG-08 /data/MVS_P0/reco01/MVS_P0/archivelog/2008_08_21/o1_mf_1_8_4bvlck3b_.arc
9 22-AUG-08 /data/MVS_P0/reco01/arch/1_9_660770425.dbf
10 22-AUG-08 /data/MVS_P0/reco01/arch/1_10_660770425.dbf
11 22-AUG-08 /data/MVS_P0/reco01/arch/1_11_660770425.dbf
11 rows selected.
It looks like the archives are not written, or I can not find them. I check $ORACLE_HOME/dbs/arch and /data/MVS_P0/reco01 but it is not there. It worked before, but the person who configured it is on holiday. I know that I did 'something' that created archives (check the last three lines above), but that is somehow not working anymore.
Can someone help me by finding the archives?
(I need to make a online copy to create a standby-database, that is quite hard without archives. ;-))The query above does not show errors:
DESTINATION STATUS FAIL_DATE VALID_NOW ERROR
INACTIVE UNKNOWN
INACTIVE UNKNOWN
INACTIVE UNKNOWN
INACTIVE UNKNOWN
INACTIVE UNKNOWN
INACTIVE UNKNOWN
INACTIVE UNKNOWN
INACTIVE UNKNOWN
INACTIVE UNKNOWN
9 rows selected.
I have set the log_archive_dest_1 to location=/data/MVS_P0/reco01/arch reopen=5
When I archive manually, the archives are written to /data/MVS_P0/reco01/arch -
Automatic archival is turned off...
Hi every one,
I am running an Oracle 8i database, which is in archive log mode.
On Friday I got an error message being displayed in the command prompt and it displayed the following message;
Warning - The following error occured during ORACLE redo log archival:
ORACLE Instance mukrec - Archival Error
Press <ENTER> to acknowledge message
ORA-16038: log 8 sequence# 277 cannot be archived
ORA-19502: write error on file "", blockno (blocksize=)
ORA-00312: online log 8 thread 1: 'E:\ORACLE\ORADATA\MUKREC\LOGS\REDO08.LOG'
Press <ENTER> to acknowledge message.
This error can be seen clearly using the following URL:
http://us.f13.yahoofs.com/bc/47aff3ab_a145/bc/My+Documents/Oracle+Error.bmp?bfqe_rHB6HN7NUCc
Today when i came in the morning I realized that automatic archival of the database had been turned off and I came to realize that the database had stopped performing archival on Friday.
What can I do to come out this situation because this is a production database. I don't want to shutdown because many users are connected.Hi every one,
I am running an Oracle 8i database, which is in
archive log mode.
Snip<<<<<<<Today when i came in the morning I realized that
automatic archival of the database had been turned
off and I came to realize that the database had
stopped performing archival on Friday.
What can I do to come out this situation because this
is a production database. I don't want to shutdown
because many users are connected.Try to do manual archiving like
ALTER SYSTEM ARCHIVE LOG ALL;
The you still have to set log_archive_start to TRUE on your spfile then restart when you have a chance . Its just a pain to keep doing this through the day so you may want to schedule this until you can restart. Hopefully the missed parameter is the only problem why the redo logs can not be written and not any file permissions. -
I have the automatic archiving enabled for my database by changing the initialization parameters and 'ARCHIVE LOG LIST 'command confirms this.However,no archive files are generated (even after days of operation)until I issue 'ALTER SYSTEM SWITCH LOG FILE' command manually.Is is because the redo log files are not rotated for a full cycle?What is the frequency at which archiving takes place for a database of medium size?Is there any specific issue I need to look at? Please advise
However,no archive files are generated (even after days of operation)
r.- Perhaps , your database has not had enough transactions to cause a switch.
What is the frequency at which archiving takes place for a database of medium size?
r.- The recommended frequency is between 20min and 2hours.
Is there any specific issue I need to look at?
r.- If you want to see the frequency of switchs in your database you have to check that information in the alert file.
Joel Pérez
http://otn.oracle.com/experts -
Does a normal view write to any log i.e archive or undo log
Hi ,
can i check if a normal view writes to the archive or undo log ?
e.g
select a.* , b.* from A , B
tks & rdgsSELECT statements, including those that are selecting views, aren't making any data changes, so there would be no reason to generate UNDO or REDO log entries. There would be nothing to undo or to redo.
Justin -
How can I stop Mail from automatically archiving every incoming and outgoing email?
Mail is automatically archiving every incoming and outgoing message, and then synch'ing that with my iPhone -- thus sucking up all available memory. I have never asked it to automatically archive everything, and can't figure out how to stop it. Any ideas?
Launch Mail.
Mail > Preferences > Accounts > Advanced
Uncheck the box beside "Include when automatically checking for new messages".
Do it for all accounts if you want.
Best. -
Disable Outlook Integration-Automatic Archival Feature
Greetings,
I'm trying to find a way to disable Adobe X Standard/Professional's feature of Automatic Archival of e-mail in Outlook 2010.
We have a no-archiving policy in our organization, and this feature permits users to very easily circumvent the policy (and locking outlook from making its own archive)
I don't want to disable the entire Outlook toolbar (I've done this, and while it will work, it removes other adobe features in outlook that I would like to retain.)
I have already looked in the Adobe Configuration Tool, and the AIM for Acrobat, and unfortunately, i cannot find reference to this feature and how to disable it/remove it from the toolbar.I'll clarify.
The Adobe Customization Wizard X doesn't reveal any way to disable this part of the add-in installs (in my case Adobe X Standard)
The feature also isn't listed in the Preferences Reference (AIM) available at:
http://learn.adobe.com/wiki/download/attachments/46432650/AIM.air
Here's a pic of the ribbon, and the button that I need to disable when deploying Acrobat X Standard to my users.
(in some way other than simply removing it from the ribbon manually, user by user).
Message was edited by: GovernmentGreg -
Problem while archiving the redo Log
Hi all,
I m having few issues in my server...
I get the following error in the alert log of oracle..
There are many errors
1) No space left on device
2) ARC0: I/O error 19502 archiving log 1 to
'/oracle/admin/SNM/arch/arch_1_393_668727286.arc'
ARCH: Archival stopped, error occurred. Will continue retrying
3) ORA-16014: log 1 sequence# 393 not archive*d, no available destinations*
Also please find the v$log file query
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
FIRST_CHANGE# FIRST_TIM
1 1 405 1073741824 1 NO CURRENT
60275455 20-OCT-09
2 1 403 1073741824 1 NO INACTIVE
59987366 19-OCT-09
3 1 404 1073741824 1 NO INACTIVE
60125083 20-OCT-09
Also the diskspace is almost 97%.
Can anyone let me know whether archival of redo log files is causing the issue here?
If so if i stop the archival of logs ,will it solve the problem?
Can anyone help me on this?
Mon Oct 19 09:54:39 2009
Errors in file /oracle/admin/SNM/bdump/snm_arc0_23831.trc:
ORA-19502: write error on file
"/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno
577537 (blocksize=512)
ORA-27063: number of bytes read/written is incorrect
SVR4 Error: 28: No space left on device
Additional information: -1
Additional information: 1048576
ORA-19502: write error on file
"/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno
559105 (blocksize=512)
Mon Oct 19 09:54:39 2009
Errors in file /oracle/admin/SNM/bdump/snm_arc0_23831.trc:
ORA-19502: write error on file
"/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno
577537 (blocksize=512)
ORA-27063: number of bytes read/written is incorrect
SVR4 Error: 28: No space left on device
Additional information: -1
Additional information: 1048576
ORA-19502: write error on file
*"/oracle/admin/SNM/arch/arch_1_393_668727286.arc", blockno*
*559105 (blocksize=512)*
ARC0: I/O error 19502 archiving log 1 to
'/oracle/admin/SNM/arch/arch_1_393_668727286.arc'
ARCH: Archival stopped, error occurred. Will continue retrying
Mon Oct 19 09:54:40 2009
ORACLE Instance SNM - Archival Error
Mon Oct 19 09:54:40 2009
ORA-16038: log 1 sequence# 393 cannot be archived
ORA-19502: write error on file "", blockno (blocksize=)
ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
Mon Oct 19 09:54:40 2009
Errors in file /oracle/admin/SNM/bdump/snm_arc0_23831.trc:
ORA-16038: log 1 sequence# 393 cannot be archived
ORA-19502: write error on file "", blockno (blocksize=)
ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
Mon Oct 19 09:54:40 2009
ARCH: Archival stopped, error occurred. Will continue retrying
Mon Oct 19 09:54:40 2009
ORACLE Instance SNM - Archival Error
Mon Oct 19 09:54:40 2009
ORA-16014: log 1 sequence# 393 not archived, no available destinations
ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
Mon Oct 19 09:54:40 2009
Errors in file /oracle/admin/SNM/bdump/snm_arc1_23833.trc:
ORA-16014: log 1 sequence# 393 not archive*d, no available destinations*
ORA-00312: online log 1 thread 1: '/oracle/oradata/SNM/redo01.log'
Mon Oct 19 10:00:16 2009
ARC0: Encountered disk I/O error 19502
Mon Oct 19 10:00:16 2009
ARC0: Closing local archive destination LOG_ARCHIVE_DEST_1:
'/oracle/admin/SNM/arch/arch_1_393_668727286.arc' (error
19502)
(SNM)yes it is the production server.
Also the arch folder contains 2 GB file - arc file....
Does disable of archival will solve the issue?
I am try to clear the space or move to some other location..But the thing is my application files is of 3 to 4 GB.remaining thing is of dbf files.
6564 drwxr-x--- 2 oracle oinstall 512 Oct 21 2008 .
6563 drwxr-x--- 3 oracle oinstall 512 Oct 21 2008 ..
6568 -rw-r----- 1 oracle oinstall 7061504 Sep 30 11:58 control01.ctl
6569 -rw-r----- 1 oracle oinstall 7061504 Sep 30 11:58 control02.ctl
6570 -rw-r----- 1 oracle oinstall 7061504 Sep 30 11:58 control03.ctl
9283 -rw-r----- 1 oracle oinstall 5128192 Sep 30 10:21 mfxpima.dbf
6600 -rw-r----- 1 oracle oinstall 17179877376 Sep 30 11:50 muse0.dbf
6572 -rw-r----- 1 oracle oinstall 1073742336 Sep 30 08:10 redo01.log
6573 -rw-r----- 1 oracle oinstall 1073742336 Sep 30 10:16 redo02.log
6574 -rw-r----- 1 oracle oinstall 1073742336 Sep 30 11:58 redo03.log
6578 -rw-r----- 1 oracle oinstall 19293806592 Sep 30 11:58 sysaux01.dbf
6576 -rw-r----- 1 oracle oinstall 1698701312 Sep 30 11:56 system01.dbf
6579 -rw-r----- 1 oracle oinstall 2147491840 Sep 30 11:04 temp01.dbf
6577 -rw-r----- 1 oracle oinstall 4084211712 Sep 30 11:58 undotbs01.dbf
6580 -rw-r----- 1 oracle oinstall 5251072 Sep 30 10:21 users01.dbf
What as to be done....in this case....
Help me out...
I have no other option ....
SRinivasan -
Outlook: How to update folders in automatic archive function
When using the automatic archive function (pdf maker, single portfolio of emails) in Outlook 2010 we have the following problem:
Once set the email folders and subfolder structure of our archive remains at the status of its first setting. This means every time we rerun the archive function NEW folders/ subfolders (added after initial setup) will NOT be included!
Is there any way to automatically update the subfolder structure (e.g. below a main project folder) every time we rerun the archive function???
Otherwise this function is totally useless as any change in our Outlook folder structure is not reflected in the archiving functions, which means NEW folder and their contents are not archived!
We have like 20 projects with different archive paths we now have to archive manually each time we backup.
Thank you for your help!
JanRSA1
Go to the "Modeling" tab
Go to the "Source Systems" object type
Find your Source System
Right-Click on the source system
Choose 'Transfer Exchange Rates'.
Your BW Administrators team should have this function set up as a daily batch process. -
How to automatically clear the compiler log
Does anyone know how to automatically clear the compiler log window immediately prior to compilation? "Upon compilation" might be a better way to say it.
I couldn't find any preference settings that would enable this functionality.
I'm using SQL Developer version 2.1.0.63.73, which I believe is the lastest version.
Edited by: user1983440 on Feb 11, 2010 1:21 PMAn automatic clearing of the compiler log is not available. This would be a good enhancement request to add to the Exchange: http://htmldb.oracle.com/pls/otn/f?p=42626:16:3459578745962796
Ashley
Maybe you are looking for
-
Acrobat registry keys to create file name and path
Hi, I need to find a way to get my Acrobat to create a pdf with the same name as the drawing file it's created from and in the same folder as the drawing file. The folder path will vary from drawing to drawing. I need this to happen automatically, wi
-
Acetone nail polish cleaner? Yikes!
I had searched a little bit and didn't read thoroughly enough =( about using a non-acetone nail polish remover. So I used one that had acetone...i only put a little bit on a cotton ball and rubbed the wrist area then immediately wiped it off, then ru
-
After I create a form can I optimize (shrink the size) it?
After I create a form (using Adobe X Pro/Live Cycle) can I reduce size of the form before releasing it for general use? I know how to optimize a pdf I fill in... this is before that, while the form is being created... The form I created is just over
-
How to email generated HTML report
Can I create a link on my generated report that will issue the mailto command and email the results of this report run?
-
How to assign to attribute value of h:commandButton
I am trying to use ">>" as a label of <h:commandButton> like this: <h:commandButton id="cmdNext" value=">>"></h:commandButton> Seems like JSF page validator doesnot like the way i assign >> to its value attribute. How can I assign >> to value of <h:c