日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
Oracle數(shù)據(jù)庫(kù)的啟用與關(guān)閉的歸檔模式

我們大家都知道Oracle數(shù)據(jù)庫(kù)可以在2種模式下運(yùn)行,即,歸檔模式(archivelog)與非歸檔模式(noarchivelog),歸檔模式的主要作用是提高數(shù)據(jù)庫(kù)的可恢復(fù)性,其實(shí)際生產(chǎn)的數(shù)據(jù)庫(kù)都應(yīng)該運(yùn)行在此模式下,

歸檔模式應(yīng)該和相應(yīng)的備份策略相結(jié)合,只有歸檔模式?jīng)]有相應(yīng)的備份策略只會(huì)帶來(lái)麻煩。

1.shutdown normal或shutdown immediate關(guān)閉數(shù)據(jù)庫(kù)

 
 
 
  1. [oracle@jumper oracle]$ sqlplus "/ as sysdba"  
  2. SQL*Plus: Release 9.2.0.4.0 - Production on Sat Oct 15 15:48:36 2005  
  3. Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.  
  4. Connected to:  
  5. Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production  
  6. With the Partitioning option  
  7. JServer Release 9.2.0.4.0 - Production  
  8. SQL> shutdown immediate;  
  9. Database closed.  
  10. Database dismounted.  
  11. ORACLE instance shut down.  

 

2.啟動(dòng)Oracle數(shù)據(jù)庫(kù)到mount狀態(tài)

 
 
 
  1. SQL> startup mount;  
  2. ORACLE instance started.  
  3. Total System Global Area 101782828 bytes  
  4. Fixed Size 451884 bytes  
  5. Variable Size 37748736 bytes  
  6. Database Buffers 62914560 bytes  
  7. Redo Buffers 667648 bytes  
  8. Database mounted.  

 

3.啟用或停止歸檔模式

如果要啟用歸檔模式,此處使用

 
 
 
  1. alter database archivelog 命令。  
  2. SQL> alter database archivelog;  
  3. Database altered.  
  4. SQL> alter database open;  
  5. Database altered.  
  6. SQL> archive log list;  
  7. Database log mode Archive Mode  
  8. Automatic archival Enabled  
  9. Archive destination /opt/oracle/oradata/conner/archive  
  10. Oldest online log sequence 148  
  11. Next log sequence to archive 151  
  12. Current log sequence 151   

 

上述的相關(guān)內(nèi)容就是對(duì)如何啟動(dòng)或關(guān)閉Oracle數(shù)據(jù)庫(kù)的歸檔模式的描述,希望會(huì)給你帶來(lái)一些幫助在此方面。


新聞標(biāo)題:Oracle數(shù)據(jù)庫(kù)的啟用與關(guān)閉的歸檔模式
轉(zhuǎn)載來(lái)于:http://m.5511xx.com/article/cdhspch.html