Oracle 11g RAC开启归档,闪回并设置各自不同的路径
admin
2023-05-07 22:22:06
0

操作步骤:(开启归档)

在任一个节点操作:

[oracle@rac02 ~]$ srvctl stop database -d mecbs
[oracle@rac02 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Mon Sep 14 23:24:19 2015
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected to an idle instance.
SQL> startup mount;
ORACLE instance started.
Total System Global Area  776646656 bytes
Fixed Size      2257272 bytes
Variable Size    570429064 bytes
Database Buffers   197132288 bytes
Redo Buffers      6828032 bytes
Database mounted.
SQL> alter system set log_archive_dest_1='LOCATION=+ARCH' scope=spfile sid='*';
System altered.
SQL> alter system set cluster_database=false scope=spfile;
System altered.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> alter system set cluster_database=true scope=spfile;
System altered.
SQL> shutdow immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
SQL> startup
ORACLE instance started.
Total System Global Area  776646656 bytes
Fixed Size      2257272 bytes
Variable Size    570429064 bytes
Database Buffers   197132288 bytes
Redo Buffers      6828032 bytes
Database mounted.
Database opened.
SQL> archive log list;
Database log mode        Archive Mode
Automatic archival        Enabled
Archive destination        +ARCH
Oldest online log sequence     4
Next log sequence to archive   5
Current log sequence        5
开启其他节点。。。

 

开启数据库闪回:

[oracle@rac01 ~]$ srvctl stop database -d mecbs
SQL> startup mount;
ORACLE instance started.
Total System Global Area  776646656 bytes
Fixed Size      2257272 bytes
Variable Size    541068936 bytes
Database Buffers   230686720 bytes
Redo Buffers      2633728 bytes
Database mounted.
SQL> alter system set db_recovery_file_dest_size=10G scope=spfile sid='*';
System altered.
SQL> alter system set db_recovery_file_dest='+FRA' scope=spfile sid='*';
System altered.
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down
SQL> startup mount;
ORACLE instance started.
Total System Global Area  776646656 bytes
Fixed Size      2257272 bytes
Variable Size    541068936 bytes
Database Buffers   230686720 bytes
Redo Buffers      2633728 bytes
Database mounted.
SQL> alter database flashback on;
SQL> alter database open;
Database altered.
SQL> show  parameter db_recovery;
NAME         TYPE  VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest       string  +FRA
db_recovery_file_dest_size      big integer 10G
SQL> archive log list;
Database log mode        Archive Mode
Automatic archival        Enabled
Archive destination        +ARCH
Oldest online log sequence     5
Next log sequence to archive   6
Current log sequence        6
ASMCMD [+ARCH/MECBS/ARCHIVELOG] > du 
Used_MB      Mirror_used_MB
      9                   9
ASMCMD [+fra/MECBS/FLASHBACK] > du 
Used_MB      Mirror_used_MB
    204                 204

=======END=========

相关内容

热门资讯

“点热成电”,挖掘能源金矿 “十五五”规划纲要提出,深入实施能源安全新战略,加快构建清洁低碳安全高效的新型能源体系,建设能源强国...
新能源车企激战大电量时代 “量... 时报财经图库/供图 证券时报记者 叶玲珍 作为车企角逐的主战场,电池容量军备竞赛日趋白热化。中国汽车...
以方透露内塔尼亚胡曾秘访阿联酋... 以色列方面5月13日透露,以总理内塔尼亚胡在以色列对伊朗发动大规模军事行动期间曾秘密访问阿联酋,并称...
英伟达、谷歌、苹果均创市值历史... 【CNMO科技消息】5月14日,CNMO科技注意到,美东时间周三,美股三大指数涨跌不一,纳指和标普5...
商业化探索持续深入 “AI+教... 来源:滚动播报 (来源:经济参考报) 人工智能通识课堂上,教师发出指令几分钟后,学生手绘的卡通人物就...
偷拍男子是否会被清出公务员拟录... 近日,南京审计大学一名在校研究生顾某某因涉嫌偷拍女生隐私,引发关注。顾某某已被国家税务总局江苏省税务...
乌克兰首都基辅传出爆炸声 △乌克兰首都基辅(资料图)当地时间14日,乌克兰首都基辅传出爆炸声,此前基辅拉响防空警报。(总台记者...
移动空调制冷一会就停止了 原因可能是空调正在开启启动模式,移动空调存在逐步启动模式,在空调开启过程中会逐步启动保证空调的正常运...
排水管怎么安装 首先需关闭上水阀,然后将软管用扳手拧下来装上三通,注意需要按一个内部带丝扣的一面,然后在三通上接上原...
净水器滤芯正确顺序图 以常规的欧吉分五级过滤瓶为例,前三级是初次过滤,主要是PP棉、颗粒活性炭、块状活性炭、树脂等。通常组...