RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
Oracle数据库的启用与关闭的归档模式

我们大家都知道Oracle数据库可以在2种模式下运行,即,归档模式(archivelog)与非归档模式(noarchivelog),归档模式的主要作用是提高数据库的可恢复性,其实际生产的数据库都应该运行在此模式下,

归档模式应该和相应的备份策略相结合,只有归档模式没有相应的备份策略只会带来麻烦。

1.shutdown normal或shutdown immediate关闭数据库

 
 
 
  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.启动Oracle数据库到mount状态

 
 
 
  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   

 

上述的相关内容就是对如何启动或关闭Oracle数据库的归档模式的描述,希望会给你带来一些帮助在此方面。


网站标题:Oracle数据库的启用与关闭的归档模式
标题链接:http://www.jxjierui.cn/article/cdhspch.html