Reprinted from: http://blog.csdn.net/leshami/article/details/5784713Oracle can save online log files to many different locations, and the process of converting online logs to archived logs is called archiving. The corresponding log is called the archive log.First, archive the logis a copy of the online redo log group file that contains the redo record and a unique log sequence number to
What is the reason for the recent explosion in the archive log, with the delete archivelog all seemingly unable to erase all archived logs?
1. Demo Environment
Copy Code code as follows:
Sql> SELECT * from V$version where rownumBANNER
----------------------------------------------------------------
Oracle Database 10g release 10.2.0.3.0-64bit Production
Sql> select Inst_id,instance_name from Gv$instance; --> two node RAC
INS
Tar instruction usage: tar [-][options] [pathname ...]Main mode of operation:-A,--catenate,--concatenate -c,--create: Creating an Archive-d,diff,compare: Comparing the difference between an archive file and an operating system--delete: Remove from archive (note that here--not a common description tag, same as-c,-d)-r,--append: Recursive operation-t,--l
The archive log (Archive log) is a non-active redo log backup. By using archived logs, you can keep all the redo history, when the database is in Archivelog mode and log-switched, Background process Arch will save the contents of the redo log to the archive log. With data file backups, archive logs and redo logs to ful
See if the Oracle database is archive mode [1] 1.select name,log_mode from v$database; name log_mode----------------- ------------------------- QUERY noarchivelog 2. Using the Archive Log LIST command Database log mode No Archive Mo de Automatic Archival disabled Archive destination/data/oracle/product/10.2.0/db_1//
to see if an Oracle database is in archive mode1.select Name,log_mode from V$database; NAME log_mode------------------------------------------QUERY noarchivelog 2. Use archive log LIST command Database log MODE No Archive Mode Automatic Archival Disabled Archive destination/data/oracle/product/10.2.0/db_1//dbs/arch old
To ensure that the Oracle database works normally in archive mode, perform the following settings::
1. Set the database to archive
If the database archive mode is not enabled, the query displays the following information (non-archive mode ):
1. query the current database mode
SQL>
1.select Name,log_mode from V$database; NAME log_mode------------------------------------------QUERY noarchivelog 2. Using the archive Log LIST command Database log Mode No Archive Mode Automatic archival Disabled Archive destination/data/oracle/product/10.2.0/db_1//dbs/arch Olde St Online log sequence 739 current log sequence 741
edit this section what is Oracle
One. To see if the Oracle database is in archive mode:1.select Name,log_mode from V$database;NAME Log_mode------------------ ------------------------QUERY Noarchivelog2. Use archive LOG LIST commandDatabase log mode No Archive modeAutomatic Archival DisabledArchive Destination/data/oracle/product/10.2.0/db_1//dbs/archOldest online log sequence 739Current log sequ
We all know that the controlfile records information about each archivelog. Of course, after deleting these physical files in the OS
The archivelog information is still recorded in the controlfile. the logs are displayed visually in the Oracle OEM manager. After we manually clear the files in the archive directory, these records are not cleared from controlfile, that is, Oracle does not know that these files do not exist! In this case, if we want to m
Oracle 11g Flashback Data Archive (flash back Data archiving) UNDO tablespace record rollback information although it can provide flash back query, but for a long time, this information will be overwritten. In fact, as long as the transaction is committed, it will become a writable object. Therefore, when performing a transient query, we will receive the 1555 error because we cannot find the undo block, and Flashback Data
In the development and testing environments of Oracle databases, the log mode and automatic archiving mode of databases are generally not set, which is conducive to the adjustment of system applications, the generation of a large number of archive log files will consume a lot of disk space. However, when the system goes online and becomes a production environment, it is very important to set it to log mode and automatically
[1] 1. select name, log_mode from v $ database; NAME LOG_MODE ------------------ ------------------------ query noarchivelog 2. use the archive log list Command Database log mode No Archive Mode Automatic archival Disabled Archive destination/data/oracle/product/10.2.0/db_1/dbs/arch Oldest online log sequence 739 Current log sequence 741 what is Oracle
The simplest way to open an archive in an ASM stand-alone environment.Environment: oracle11g 11.2.0.4Login Sqlplus[Email protected] ~]$ Sqlplus/as SYSDBASql*plus:release 11.2.0.4.0 Production on Thu June 8 18:20:41 2017Copyright (c) 1982, Oracle. All rights reserved.Connected to an idle instance.To boot the Oracle database to the open stateSql> StartupORACLE instance started.Total System Global area 1068937216 bytesFixed Size 2260088 bytesVariable Siz
Original reprint Please specify addressArchive log: an inactive redo log that is used to hold all redo history records.When to write the archive log: when the database is in Archivelog mode and the log switch is made, the background process arch starts to save the contents of the redo log to the archive log completely.Log operation mode:The Noarchivelog mode does not preserve the history of redo logging, on
the delete files, then the use RMAN crosscheck and delete EXPIRED commands. ************************************************************************Errorsinchfile G:\app\administrator\diag\rdbms\orcl\orcl\trace\orcl_ora_1368.trc:ora-19809: Exceeded limit on number of recovered files ORA-19804: Cannot be recycled17847808bytes of disk space (from4102029312limit) Arch:error19809Creating Archive log file to'G:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\A
Recently, due to the surge in archive logs, deleting archivelog all seems to be unable to clear all archived logs. Why?
1. Demo Environment
SQL> select * from v $ version where rownum
BANNER
----------------------------------------------------------------
Oracle Database 10g Release 10.2.0.3.0-64bit Production
SQL> select inst_id, instance_name from gv $ instance; --> two nodes RAC
INST_ID INSTANCE_NAME
--------------------------
1 GOBO4A
2 GOBO4B
Oracle Database TableSpace and archive [SQL] -- TableSpace (TableSpace) is a pioneering concept of Oracle. Table space makes database management more flexible and greatly improves database performance. -- Function: 1. avoid the risk of sudden depletion of disk space 2. more flexible planning data 3. improve database performance 4. improve database security/* ============================================== ======= create an Oracle tablespace ===========
to see if an Oracle database is in archive mode
Sql> select Name,log_mode from V$database;
NAME Log_mode
------------------ ------------------------
TEST Noarchivelog
Sql> Archive Log List
Database log mode No Archive mode
Automatic Archival Disabled
Archive Destination Use_db_recovery_file_dest
Oldest online log se
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.