Oracle 9i 非歸檔模式到歸檔模式設(shè)置一例 |
發(fā)布時(shí)間: 2012/9/12 17:30:54 |
創(chuàng)建歸檔目錄:-
SQL> alter system set log_archive_dest_1='LOCATION=/u01/app/Oracle/oradata/orcl/arch' scope=both;
SQL> show parameter log_archive_dest_1 NAME TYPE VALUE ------------------------------------ ---------------------- ------- log_archive_dest_1 string LOCATION=/u01/app/Oracle/orada ta/orcl/arch
NAME TYPE VALUE ------------------------------------ ---------------------- ------- log_archive_dest_state_1 string enable
SQL> alter system switch logfile;
觀察并沒有產(chǎn)生歸檔。
SQL> archive log list Database log mode Archive Mode Automatic archival Disabled --不解 Archive destination /u01/app/Oracle/oradata/orcl/arch Oldest online log sequence 4 Next log sequence to archive 4 Current log sequence 6 Google:修改pfile參數(shù)文件,設(shè)置log_archive_start='TRUE'
*.log_archive_dest_1='LOCATION=/u01/app/Oracle/oradata/orcl/arch' log_archive_start='TRUE'
SQL> startup Oracle instance started.
Fixed Size 452284 bytes Variable Size 335544320 bytes Database Buffers 402653184 bytes Redo Buffers 143360 bytes Database mounted. Database opened.
SQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination /u01/app/Oracle/oradata/orcl/arch Oldest online log sequence 4 Next log sequence to archive 6 Current log sequence 6
SQL> alter system switch logfile;
---------- ---------- ------ ------ ------ -- --------- 4 1 YES NO NO A 19-APR-11 5 1 YES NO NO A 19-APR-11 6 1 YES NO NO A 19-APR-11 7 1 YES NO NO A 19-APR-11
[Oracle@ORA9ISERV arch]$ pwd /u01/app/Oracle/oradata/orcl/arch [Oracle@ORA9ISERV arch]$ ls -l total 1124 -rw-r----- 1 Oracle oinstall 278528 Apr 19 13:37 1_4.dbf -rw-r----- 1 Oracle oinstall 31232 Apr 19 13:37 1_5.dbf -rw-r----- 1 Oracle oinstall 585728 Apr 19 13:38 1_6.dbf -rw-r----- 1 Oracle oinstall 225280 Apr 19 13:42 1_7.dbf
本文出自:億恩科技【mszdt.com】 服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |