当前位置:网站首页>4. Oracle redo log file management

4. Oracle redo log file management

2022-07-05 06:22:00 Cold leaves elegant_

  1. Inquire about Oracle Archived information for , If it is not in archive mode, change it to archive mode
archive log list

 Insert picture description here

  1. Set two archive paths , In a D disc , In a E disc
alter system set log_archive_dest_1='location=D:\Oracletest';

 Insert picture description here

alter system set log_archive_dest_2='location=E:\';

 Insert picture description here

  1. Create a redo log file group , File storage :D:\Oracletest
    Query existing log groups :
select group#,sequence#,members,status from v$log;

 Insert picture description here

Add a new log group :

alter database add logfile ('D:\Oracletest\redo04a.log') size 10m;

 Insert picture description here

Query existing log groups :

select group#,sequence#,members,status from v$log;

 Insert picture description here

  1. Add members for the second redo log file group redo02b.log
alter database add logfile member 'D:\app\Snakewood\oradata\orcl\redo02b.log' to group 2;

 Insert picture description here

  1. take current The redo log file of the status is moved to D:\Oracletest
    Query log group status :
select group#, sequence#, members, status from v$log;

 Insert picture description here

 Insert picture description here

alter database rename file'D:\app\Snakewood\oradata\orcl\redo01.log' to 'D:\Oracletest\redo01.log';

 Insert picture description here

Shut down and restart the database
 Insert picture description here

Query modification results :

select * from v$logfile;

 Insert picture description here

原网站

版权声明
本文为[Cold leaves elegant_]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050620030021.html