how to check archive log destination size in oracle
how to check archive log destination size in oracle
Learn about how to check archive log destination size in oracle, we have the largest and most updated how to check archive log destination size in oracle information on alibabacloud.com
In the actual development process, there are times when we are likely to need an operational trace of a table, or a recorded SQL statement for purposeful data recovery (at which point the point-in-time recovery has not satisfied finer granularity), or just a view;It is said that after Oracle8i, it provides the Logminer log analysis tool, although there is no GUI graphical interface, but also can not block the use of his determination.Conditions used u
Environment:OS: Red Hat Linux As 5DB: Oracle 10.2.0.4The following describes how to simulate Incomplete recovery after archiving logs are lost.1. Back up the databaseRun {Allocate channel c1 device type disk;Allocate channel c2 device type disk;Allocate channel c3 device type disk;Allocate channel c4 device type disk;Backup database format'/u02/rman_bak/full _ % u _ % T. bak ';Release channel c1;Release channel c2;Release channel c3;Release channel c4
Oracle does not completely restore the lost archive log, but does not completely restore the log. The purpose is to reset the log. Here, the time point is the time point after the backup set is generated. We can see that only records can be recovered.
We all know that each archivelog information is recorded in controlfile. Of course, after deleting these physical files under OS, the archivelog information is still recorded in our controlfile, the Oracle OEM manager displays visualized logs. After we manually clear the files in the archive directory, these records are not cleared from the controlfile, that is, oracle
We all know that the controlfile records information about each archivelog. Of course, after deleting these physical files in the OS
We all know that the controlfile records information about each archivelog. Of course, after deleting these physical files in the OS
We all know that each archivelog information is recorded in controlfile. Of course, after deleting these physical files under OS, the archivelog information is still recorded in our controlfile, the
Recently deleted the archive log of DG,
[oracle@.local logs]crontab -l* 8 * * * sh /home/oracle/dbscripts/del_arc.sh
This script calls the three scripts that generate the delete verification respectively.
cat del_arc.sh#! /bin/bashsource /home/oracle/.bash_profilesh /home/
writes a trace file, it overwrites the existing archive file by mistake, and finally causes archive log corruption, wonderful, never seen.
My final judgment is that this fault should be caused by a problem in the operating system writing, and the space of the file is still considered writable, which leads to a write conflict, in this case,
Enter the machine and set the environment variables, such as:Export oracle_home=/main/app/oracle/product/11.2. 0/db_1export oracle_sid=devdbThen switch Oracle user, admin mode login Sqlplussu - oracle[[email protected]~]$ sqlplus/nologsql> Connect/as sysdbaCheck the use of Flash recovery area, you can see the archivelog is very large, up to 99.94SQL>Select* from
Label:One set to archive mode [XHTML]View Plaincopyprint?
1 SQL> Archive log list; #查看是不是归档方式
2 SQL> alter system set log_archive_start=true scope=spfile; #启用主动归档
SQL> Alter system set log_archive_dest=' location=/oracle/ora9/oradata/arch ' scope=spfile;
#设置归档路径
SQL> Alter system set log_archive_d
When this problem encountered, I did not look at the alarm log, always thought that the database lock blocking affects performance. Know that the archive log is full when the view log is found. To cause this problem to occur:Errors in File/dbbk/oracle/diag/rdbms/orcl/orcl/tr
The restoration method for a database that loses archive log files is to extract data from a database that cannot be opened normally (because one or more database files are inconsistent with other files. Scenario: A disk is damaged and a database file is lost. Unfortunately, several archive log files are lost when a da
Show parameter recover -- view the path for storing archived log files
Alter database archive -- change the database to archive Mode
Archive log list/SQL> select name, log_mode from v $ database; view the current status of the database
Modify the path of an archived
In Oracle, data is generally stored in data files, but one of the biggest differences between the database and Oracle is that the database can be restored when data errors occur. This is our common redo file function in Oracle. The redo log is divided into two parts: Online redo lo
Tags: archiveOur Oracle database defaults to non-archive mode, and if there are three redo log groups, when all three log groups are fully filled, the first log group will start looping, and the contents of the first log group wil
Tags: managing coverage discussion file on disk non-archive 51cto generation methodThere are two ways to run an Oracle database: Archive (ARCHIVELOG) and non-archive (NO ARCHIVELOG). In non-archive mode, the log switch overwrites
Oracle archive logs are typically generated by DML statements, so increasing too quickly should be DML too frequentlyStart by querying the following daily archives:Select TRUNC (first_time) "Time",SUM (Block_size * BLOCKS)/1024/1024/1024 "SIZE (GB)"From V$archived_logGROUP by TRUNC (First_time);So you can judge the time period to start filing a comparison excepti
Case Description: a data file ordtab03.dbf in the ordtab tablespace is destroyed. It contains many partitions in the ORDERS table. The data files are hot-standby in July4, 2004, July4.
Case Description: a data file ordtab03.dbf in the ordtab tablespace is destroyed. It contains many partitions in the ORDERS table. The data files are hot-standby on July 4, 2004, July 4.
The restoration method for a database that loses archive
1. Database cannot be started
Sql> StartupThe ORACLE routine has started.
Total System Global area 289406976 bytesFixed Size 1248576 bytesVariable Size 83886784 bytesDatabase buffers 197132288 bytesRedo buffers 7139328 bytesDatabase loading complete.ORA-16038: Log 2 Serial number 44 cannot be archivedORA-19809: Exceede
When the archive log space in Oracle is full, it needs to be emptied, otherwise it will affect the database's normal operation.You will not be able to log in to Oracle properly, and you need to delete some archived logs to log int
Set to archive mode
1 sql> archive log list; #查看是不是归档方式 2 sql> alter system set LOG_ARCHIVE_START=TRUE Scope=spfile; #启用主动归档 sql> alter system set log_archive_dest= ' Location=/oracle/ora9/oradata/arch ' scope=spfile; #设置归档路径 sql> alter system set log_archive_dest_1= ' Location=/
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.