在單機上建立物理的Oracle9i standby資料庫

來源:互聯網
上載者:User

說明;Oracle9i資料庫的Data Guard 特性確保對資料進行完整的保護,是Oracle 9i的一個關鍵特性之一.Data Guard可以建立物理的Standby資料庫,也可以建立邏輯的Standby資料庫,還可以混合使用,靈活性比較強.這個文檔是Fenng練習時候記下來的東西,談不上是什麼心得.*這不過是一份安裝過程中的筆記而已* 如果對這個有更高的期望,或者想得到關於Oracle資料庫的data guard 和Standby的更多資訊,請參考官方的文檔.

系統內容:Windows 2000 專業版 SP3 512M 記憶體

現有的資料庫執行個體(Primary)名字:Demo

預建立的Standby 資料庫執行個體名字:Pstandby

資料庫版本資訊:

SQL> select * from v$version;

BANNER

----------------------------------------------------------------

Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production

PL/SQL Release 9.2.0.1.0 - Production

CORE 9.2.0.1.0 Production

TNS for 32-bit Windows: Version 9.2.0.1.0 - Production

NLSRTL Version 9.2.0.1.0 - Production

準備工作

首先確認Primary資料庫是否在歸檔模式下

SQL> show user

USER is "SYS"

SQL>

SQL> archive log list

Database log mode Archive Mode

Automatic archival Enabled

Archive destination d:\oracle\oradata\demo\archive

Oldest online log sequence 42

Next log sequence to archive 44

Current log sequence 44

如果不在歸檔模式下,調整資料庫。

首先提交命令修改SPfile:

SQL>alter system set LOG_ARCHIVE_START=TRUE scope=spfile;

然後關閉資料庫執行個體

SQL>SHUTDOWN

備份資料庫

SQL>STARTUP MOUNT

SQL>ALTER DATABASE ARCHIVELOG;

SQL>ALTER DATABASE OPEN;

SQL>SHUTDOWN IMMEDIATE

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.