当前位置:网站首页>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.

边栏推荐
- 2.1 rtthread pin device details
- Prime Protocol宣布在Moonbeam上的跨链互连应用程序
- Serial port-rs232-rs485-ttl
- Développement d'un module d'élimination des bavardages à clé basé sur la FPGA
- Interface idempotency
- Stc8h development (XII): I2C drive AT24C08, at24c32 series EEPROM storage
- mysql关于自增长增长问题
- 51nod 1130 n factorial length V2 (Stirling approximation)
- 简述C语言中的符号和链接库
- Redis (replicate dictionary server) cache
猜你喜欢

在字节做测试5年,7月无情被辞,想给划水的兄弟提个醒

Facebook等大廠超十億用戶數據遭泄露,早該關注DID了

Canvas cut blocks game code

C#(二十八)之C#鼠标事件、键盘事件

WPF效果第一百九十一篇之框选ListBox
![P7735-[noi2021] heavy and heavy edges [tree chain dissection, line segment tree]](/img/b1/dbfc42d66548476300501dd839abef.jpg)
P7735-[noi2021] heavy and heavy edges [tree chain dissection, line segment tree]

Facebook等大厂超十亿用户数据遭泄露,早该关注DID了

C#(二十九)之C#listBox checkedlistbox imagelist

1. New project

Align items and align content in flex layout
随机推荐
Ybtoj coloring plan [tree chain dissection, segment tree, tarjan]
/usr/bin/gzip: 1: ELF: not found/usr/bin/gzip: 3: : not found/usr/bin/gzip: 4: Syntax error:
Redis (replicate dictionary server) cache
JVM的手术刀式剖析——一文带你窥探JVM的秘密
在字节做测试5年,7月无情被辞,想给划水的兄弟提个醒
[matlab] - draw a five-star red flag
2.2 fonctionnement stm32 GPIO
Ipv4中的A 、B、C类网络及子网掩码
Simple blog system
自动化测试怎么规范部署?
Crawler of explanation and application of agency theory
【可调延时网络】基于FPGA的可调延时网络系统verilog开发
Basic concepts of LTE user experience
Why do you want to start pointer compression?
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
【按键消抖】基于FPGA的按键消抖模块开发
JS music online playback plug-in vsplayaudio js
【Qt5】Qt QWidget立刻出现并消失
Record the pit of NETCORE's memory surge
C#(二十七)之C#窗体应用