当前位置:网站首页>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.
边栏推荐
- Oracle ORA error message
- 自动化测试的好处
- Hashcode and equals
- 【按键消抖】基于FPGA的按键消抖模块开发
- [Massey] Massey font format and typesetting requirements
- Ethernet port &arm & MOS &push-pull open drain &up and down &high and low sides &time domain and frequency domain Fourier
- Custom event of C (31)
- Facebook and other large companies have leaked more than one billion user data, and it is time to pay attention to did
- [practice] mathematics in lottery
- [American competition] mathematical terms
猜你喜欢
在字节做测试5年,7月无情被辞,想给划水的兄弟提个醒
Database, relational database and NoSQL non relational database
After five years of testing in byte, I was ruthlessly dismissed in July, hoping to wake up my brother who was paddling
RT-Thread--Lwip之FTP(2)
如何修改表中的字段约束条件(类型,default, null等)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
C#(二十七)之C#窗体应用
C form application of C (27)
Record the pit of NETCORE's memory surge
WPF效果第一百九十一篇之框选ListBox
随机推荐
Thread sleep, thread sleep application scenarios
KS008基于SSM的新闻发布系统
math_极限&微分&导数&微商/对数函数的导函数推导(导数定义极限法)/指数函数求导公式推导(反函数求导法则/对数求导法)
登录mysql输入密码时报错,ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO/YES
RT thread -- FTP of LwIP (2)
Ks008 SSM based press release system
[FPGA tutorial case 11] design and implementation of divider based on vivado core
Pytoch foundation - (1) initialization of tensors
Align items and align content in flex layout
User experience index system
Oracle ORA error message
Microkernel structure understanding
51nod 1130 n factorial length V2 (Stirling approximation)
简述C语言中的符号和链接库
20、 EEPROM memory (AT24C02) (similar to AD)
[Key shake elimination] development of key shake elimination module based on FPGA
Overview of super-resolution reconstruction of remote sensing images
WPF效果第一百九十一篇之框选ListBox
BUAA计算器(表达式计算-表达式树实现)
Why do you want to start pointer compression?