Oracle 10g依然可以啟動手動歸檔

來源:互聯網
上載者:User

不細看doc還真不行。

SQL> shutdown immediate
資料庫已經關閉。
已經卸載資料庫。
Oracle 常式已經關閉。
SQL> startup mount
ORACLE 常式已經啟動。

Total System Global Area 104857600 bytes
Fixed Size 1247540 bytes
Variable Size 96470732 bytes
Database Buffers 4194304 bytes
Redo Buffers 2945024 bytes
資料庫裝載完畢。


--啟用手動歸檔
SQL> alter database archivelog manual;


資料庫已更改。


SQL> select log_mode from v$database;


LOG_MODE
------------
MANUAL


SQL> alter database open;


資料庫已更改。
SQL> show parameter log_archive_max_processes


NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_max_processes integer 4


--歸檔進程也起來了
SQL> select * from v$archive_processes where status='ACTIVE';


PROCESS STATUS LOG_SEQUENCE STAT
---------- ---------- ------------ ----
0 ACTIVE 0 IDLE
1 ACTIVE 0 IDLE
2 ACTIVE 0 IDLE
3 ACTIVE 0 IDLE
4 ACTIVE 0 IDLE


--自動封存顯示"啟用"


SQL> archive log list;
資料庫記錄模式 存檔模式
自動封存 啟用
存檔終點 USE_DB_RECOVERY_FILE_DEST
最早的聯機日誌序列 111
下一個存檔日誌序列 112
當前日誌序列 112
SQL> alter system switch logfile;


系統已更改。


SQL> alter system switch logfile;


--這裡掛住了...
--======================================
再開一個session:
SQL> alter system archive log current;


系統已更改。


SQL>

相關文章

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.