当前位置:网站首页>4.Oracle-重做日志文件管理
4.Oracle-重做日志文件管理
2022-07-05 06:20:00 【寒叶飘逸_】
- 查询Oracle的归档信息,如果不是归档模式则修改为归档模式
archive log list
- 设置两个归档路径,一个在D盘,一个在E盘
alter system set log_archive_dest_1='location=D:\Oracletest';
alter system set log_archive_dest_2='location=E:\';
- 创建一个重做日志文件组,文件存放:D:\Oracletest
查询已有日志组:
select group#,sequence#,members,status from v$log;
添加新的日志组:
alter database add logfile ('D:\Oracletest\redo04a.log') size 10m;
查询现有日志组:
select group#,sequence#,members,status from v$log;
- 为第二个重做日志文件组添加成员redo02b.log
alter database add logfile member 'D:\app\Snakewood\oradata\orcl\redo02b.log' to group 2;
- 将current状态的重做日志文件移动到D:\Oracletest
查询日志组状态:
select group#, sequence#, members, status from v$log;
alter database rename file'D:\app\Snakewood\oradata\orcl\redo01.log' to 'D:\Oracletest\redo01.log';
关闭并重启数据库
查询修改结果:
select * from v$logfile;
边栏推荐
- [rust notes] 17 concurrent (Part 2)
- Leetcode-9: palindromes
- Traversal of leetcode tree
- Liunx starts redis
- Data visualization chart summary (I)
- 【LeetCode】Day94-重塑矩阵
- [rust notes] 14 set (Part 2)
- MPLS experiment
- Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
- 打印机脱机时一种容易被忽略的原因
猜你喜欢
Operator priority, one catch, no doubt
【LeetCode】Easy | 20. Valid parentheses
博弈论 AcWing 893. 集合-Nim游戏
SPI details
博弈论 AcWing 891. Nim游戏
What is socket? Basic introduction to socket
Quickly use Amazon memorydb and build your own redis memory database
高斯消元 AcWing 884. 高斯消元解异或线性方程组
[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis
RGB LED infinite mirror controlled by Arduino
随机推荐
阿里新成员「瓴羊」正式亮相,由阿里副总裁朋新宇带队,集结多个核心部门技术团队
Niu Mei's math problems
背包问题 AcWing 9. 分组背包问题
LeetCode 1200. Minimum absolute difference
Currently clicked button and current mouse coordinates in QT judgment interface
Navicat连接Oracle数据库报错ORA-28547或ORA-03135
Sqlmap tutorial (1)
MySQL advanced part 2: the use of indexes
Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
MySQL advanced part 2: storage engine
1041 Be Unique
20220213-CTF MISC-a_ good_ Idea (use of stegsolve tool) -2017_ Dating_ in_ Singapore
What is socket? Basic introduction to socket
The difference between CPU core and logical processor
SQLMAP使用教程(一)
Daily question 1189 Maximum number of "balloons"
C - XOR to all (binary topic)
博弈论 AcWing 891. Nim游戏
SPI details
SQL三种连接:内连接、外连接、交叉连接