当前位置:网站首页>DM8 archive log file manual switching
DM8 archive log file manual switching
2022-07-06 03:54:00 【Song Xiaorong】
Archive log switch
Here, the database is used as a stand-alone , For example, local archiving has been enabled , Test the switching of archive log files .
Because the local archive is written to the archive log file asynchronously ,REDO The log is written to the online log file , Then, a special archiving thread is responsible for these REDO The log is written to the local archive log file . Switch functions through archiving , These can be written to the online log file , Those that have not been written to the archive log file REDO journal , Write to archive log file .
Perform the following SQL command , The archive switching function can be completed . Three sentence function system , When switching manually, you only need to select one to execute . This chapter will test from these three statements .
SQL>alter database archivelog current;SQL>alter system archive log current;SQL>alter system switch logfile;
Before the test , We use the following statement to query the archived log file information .
SQL>select t.STATUS, t.PATH, t.ARCH_LSN, t.CLSN from "V$ARCH_FILE"t;The results are as follows , You can see the... In the database 16 Archive files are active , The description is that this file is an archive log file in use .

Mode one (alter database archivelog current)
Do some simple inserts 、 Delete or create tables and other data operations , Use the following command to switch archiving :
SQL>alter database archivelog current;Query again V$ARCH_FILE You can see the 16 Files have been INACTIVE state .

Wait a moment to inquire , You can see the generation of 17 Archive files , Status as ACTIVE.

Mode two (alter system archive log current)
Delete the table you just created , Or simply insert 、 to update 、 Delete table data and other database operations , Use the following command to switch archiving :
SQL>alter system archive log current;Query again V$ARCH_FILE You can see the 17 Files have been INACTIVE state .

Wait a moment to inquire , You can see the generation of 18 Archive files , Status as ACTIVE.

Mode three (alter system switch logfile)
Do some simple inserts 、 Delete or create tables , Then use the following command to switch archiving :
SQL>alter system switch logfile;Query after operation V$ARCH_FILE, You can see the 18 Files have been INACTIVE state .

Wait a moment to inquire , You can see the generation of 19 Archive files , Status as ACTIVE.

边栏推荐
- 【按键消抖】基于FPGA的按键消抖模块开发
- 《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
- Factors affecting user perception
- C (thirty) C combobox listview TreeView
- Blue Bridge Cup - Castle formula
- [FPGA tutorial case 12] design and implementation of complex multiplier based on vivado core
- STC8H开发(十二): I2C驱动AT24C08,AT24C32系列EEPROM存储
- Canvas cut blocks game code
- WPF effect Article 191 box selection listbox
- 自动化测试怎么规范部署?
猜你喜欢

Data analysis Seaborn visualization (for personal use)

Pytoch foundation - (1) initialization of tensors

C (XXIX) C listbox CheckedListBox Imagelist

《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动

Blue style mall website footer code

No qualifying bean of type ‘......‘ available

UDP reliable transport protocol (quic)

mysql从一个连续时间段的表中读取缺少数据

Error 1045 (28000): access denied for user 'root' @ 'localhost' (using password: no/yes

Multi project programming minimalist use case
随机推荐
自动化测试怎么规范部署?
Security xxE vulnerability recurrence (XXe Lab)
Plus d'un milliard d'utilisateurs de grandes entreprises comme Facebook ont été compromis, il est temps de se concentrer sur le did
Facebook and other large companies have leaked more than one billion user data, and it is time to pay attention to did
How do we make money in agriculture, rural areas and farmers? 100% for reference
Schnuka: what is visual positioning system and how to position it
潘多拉 IOT 开发板学习(HAL 库)—— 实验9 PWM输出实验(学习笔记)
Failure causes and optimization methods of LTE CSFB
登录mysql输入密码时报错,ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO/YES
Prime protocol announces cross chain interconnection applications on moonbeam
User perceived monitoring experience
Schnuka: visual positioning system working principle of visual positioning system
MySQL 中的数据类型介绍
C#(二十七)之C#窗体应用
Stc8h development (XII): I2C drive AT24C08, at24c32 series EEPROM storage
Flask learning and project practice 8: introduction and use of cookies and sessions
User experience index system
JS Vanke banner rotation chart JS special effect
How to modify field constraints (type, default, null, etc.) in a table
AcWing 243. A simple integer problem 2 (tree array interval modification interval query)