当前位置:网站首页>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;
边栏推荐
- MySQL advanced part 1: stored procedures and functions
- In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
- liunx启动redis
- MySQL advanced part 2: SQL optimization
- Records of some tools 2022
- Chart. JS - Format Y axis - chart js - Formatting Y axis
- 927. Trisection simulation
- SQL三种连接:内连接、外连接、交叉连接
- Error ora-28547 or ora-03135 when Navicat connects to Oracle Database
- 20220213-CTF MISC-a_ good_ Idea (use of stegsolve tool) -2017_ Dating_ in_ Singapore
猜你喜欢
Data visualization chart summary (II)
MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理
做 SQL 性能优化真是让人干瞪眼
Data visualization chart summary (I)
There are three kinds of SQL connections: internal connection, external connection and cross connection
LeetCode-54
Appium automation test foundation - Summary of appium test environment construction
NotImplementedError: Cannot convert a symbolic Tensor (yolo_boxes_0/meshgrid/Size_1:0) to a numpy ar
Liunx starts redis
Quickly use Amazon memorydb and build your own redis memory database
随机推荐
Basic explanation of typescript
Gaussian elimination acwing 884 Gauss elimination for solving XOR linear equations
How to generate an image from text on fly at runtime
Shutter web hardware keyboard monitoring
实时时钟 (RTC)
P3265 [jloi2015] equipment purchase
Appium automation test foundation - Summary of appium test environment construction
Leetcode-6108: decrypt messages
Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
[2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields
Liunx starts redis
做 SQL 性能优化真是让人干瞪眼
求组合数 AcWing 888. 求组合数 IV
Traversal of leetcode tree
[rust notes] 17 concurrent (Part 2)
our solution
Currently clicked button and current mouse coordinates in QT judgment interface
MPLS experiment
Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
Day 2 document