-查看實(shí)例進(jìn)程看是否有歸檔的進(jìn)程 [oracle@edsir1p8-PROD4 ~]$ ps -ef | grep PROD4 SQL> archive log list; Database log mode No Archive Mode Automatic archival Disabled Archive destination /u01/app/oracle/product/11.2.0/db_1/dbs/archOldest online log sequence 6 Current log sequence 8 sql> show parameter log_archive --在mount狀態(tài)下做 --關(guān)閉數(shù)據(jù)庫 SQL> shutdown immediate ---必須是immediate 一至性關(guān)閉數(shù)據(jù)庫 SQL> startup mount SQL> alter system set log_archive_dest_1='location=/home/oracle/arch'; ---目錄提前創(chuàng)建好 SQL> alter database archivelog; Database altered. SQL> alter database open; Database altered. SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination /home/oracle/arch Oldest online log sequence 6 Next log sequence to archive 8 Current log sequence 8 --生成歸檔(需要切redo日志) QL> select group#,member from v$logfile; GROUP# ---------- MEMBER ----------------------------------------------------------------------------- 3 /u01/app/oracle/oradata/PROD4/PROD4/redo03.log 2 /u01/app/oracle/oradata/PROD4/PROD4/redo02.log 1 /u01/app/oracle/oradata/PROD4/PROD4/redo01.log SQL> select group#,status from v$log; GROUP# STATUS ---------- ---------------- 1 INACTIVE 2 CURRENT 3 INACTIVE --切redo SQL> alter system switch logfile; System altered. SQL> select group#,status from v$log; GROUP# STATUS ---------- ---------------- 1 INACTIVE 2 INACTIVE 3 CURRENT --三種狀態(tài) current :當(dāng)前用的 active :正在歸檔時(shí)的狀態(tài), inactive:歸檔完畢,不用的狀態(tài) --查看歸檔目錄下生成的歸檔文件 [oracle@edsir1p8-PROD4 ~]$ ls /home/oracle/arch/ 1_8_861102502.dbf [oracle@edsir1p8-PROD4 ~]$ ps -ef | grep PROD4 oracle 8551 1 0 10:29 ? 00:00:00 ora_arc0_PROD4 oracle 8554 1 0 10:29 ? 00:00:00 ora_arc1_PROD4 oracle 8556 1 0 10:29 ? 00:00:00 ora_arc2_PROD4 oracle 8558 1 0 10:29 ? 00:00:00 ora_arc3_PROD4
分享文章:手動(dòng)啟動(dòng)數(shù)據(jù)庫歸檔
文章鏈接:http://muchs.cn/article36/gcehpg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供關(guān)鍵詞優(yōu)化、外貿(mào)網(wǎng)站建設(shè)、做網(wǎng)站、網(wǎng)站設(shè)計(jì)、手機(jī)網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì)公司
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)