先手動建立歸檔目錄
將oracle設為歸檔模式
手工在主服務器創建歸檔目錄
$cd $ORACLE_BASE #$ORACLE_BASE 所指向的目錄是/opt/oracle/
$mkdir
$mkdir
[oracle@cqcncdb szdb]$ sqlplus /nolog
SQL> conn / as sysdba;
Connected
SQL> startup mount;
SQL> alter database archivelog;
SQL> archive log start;
SQL> archive log list;
SQL> alter database open;
SQL> alter system set LOG_ARCHIVE_DEST_
SQL> alter system set log_archive_format=
SQL> alter system set log_archive_start=true scope=spfile;
重新啟動數據庫
SQL> shutdown immediate;
察看歸檔模式
SQL> startup
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /oracle/oradata/szdb/archive
Oldest online log sequence
Next log sequence to archive
Current log sequence
以上alter system set操作會在數據庫的spfile@sid
*
*
*
注意
注
From:http://tw.wingwit.com/Article/program/Oracle/201311/18987.html