Oracle 11g RAC開啟歸檔,閃回並設定各自不同的路徑

來源:互聯網
上載者:User

標籤:oracle rac

操作步驟:(開啟歸檔)

在任一個節點操作:

[[email protected] ~]$ srvctl stop database -d mecbs[[email protected] ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Mon Sep 14 23:24:19 2015Copyright (c) 1982, 2013, Oracle.  All rights reserved.Connected to an idle instance.SQL> startup mount;ORACLE instance started.Total System Global Area  776646656 bytesFixed Size      2257272 bytesVariable Size    570429064 bytesDatabase Buffers   197132288 bytesRedo Buffers      6828032 bytesDatabase 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> startupORACLE instance started.SQL> startupORACLE instance started.Total System Global Area  776646656 bytesFixed Size      2257272 bytesVariable Size    570429064 bytesDatabase Buffers   197132288 bytesRedo Buffers      6828032 bytesDatabase mounted.Database opened.SQL> archive log list;Database log mode        Archive ModeAutomatic archival        EnabledArchive destination        +ARCHOldest online log sequence     4Next log sequence to archive   5Current log sequence        5開啟其他節點。。。

 

開啟資料庫閃回:

[[email protected] ~]$ srvctl stop database -d mecbsSQL> startup mount;ORACLE instance started.Total System Global Area  776646656 bytesFixed Size      2257272 bytesVariable Size    541068936 bytesDatabase Buffers   230686720 bytesRedo Buffers      2633728 bytesDatabase 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 openDatabase dismounted.ORACLE instance shut downSQL> startup mount;ORACLE instance started.Total System Global Area  776646656 bytesFixed Size      2257272 bytesVariable Size    541068936 bytesDatabase Buffers   230686720 bytesRedo Buffers      2633728 bytesDatabase 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  +FRAdb_recovery_file_dest_size      big integer 10GSQL> archive log list;Database log mode        Archive ModeAutomatic archival        EnabledArchive destination        +ARCHOldest online log sequence     5Next log sequence to archive   6Current log sequence        6ASMCMD [+ARCH/MECBS/ARCHIVELOG] > du Used_MB      Mirror_used_MB      9                   9ASMCMD [+fra/MECBS/FLASHBACK] > du Used_MB      Mirror_used_MB    204                 204

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

Oracle 11g RAC開啟歸檔,閃回並設定各自不同的路徑

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.