Oracle归档模式的运行模式的两大类

数据库 Oracle
我们大家都知道Oracle归档模式的运行是可以在2种不同的模式之下的,那么它到底是如何具体的运行呢?以下的文章就有给出答案。

以下的文章主要讲述的是正确的启动或是关闭Oracle归档模式的实际操作步骤,我们大家都知道Oracle数据库运行于2种模式,主要实施Oracle归档模式(archivelog)与非归档模式(noarchivelog)。

Oracle归档模式可以提高Oracle数据库的可恢复性,生产数据库都应该运行在此模式下,归档模式应该和相应的备份策略相结合,只有归档模式没有相应的备份策略只会带来麻烦。

本文简单介绍如何启用和关闭数据库的Oracle归档模式。

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.启动数据库到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.启用或停止归档模式

如果要启用Oracle归档模式,此处使用

 

  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归档模式的介绍,望你能有所收获。

【编辑推荐】

  1. Oracle随机函数的正确取法的描述
  2. Oracle Datafiles管理需要哪些项目?
  3. Oracle Nvl函数的实际应用有哪些?
  4. Oracle实现SELECT TOP N的步骤有哪些?
  5. Oracle数据复制如何正确操作?
责任编辑:佚名 来源: 博客园
相关推荐

2020-12-29 07:56:23

JavaScript数据类型 primitive

2010-09-26 16:04:48

JVM内存溢出

2010-10-29 15:14:36

Oracle自动归档

2010-05-10 09:59:47

Oracle手动归档模

2010-06-11 17:01:09

Windows Pho

2010-05-07 16:01:21

Oracle归档模式

2011-08-01 13:28:09

Oracle归档模式非归档模式

2010-06-09 10:38:07

UML类图

2010-10-29 15:07:33

oracle日志

2010-04-30 16:34:43

Oracle数据库

2010-10-29 14:57:12

Oracle归档模式

2010-04-30 16:42:08

Oracle归档模式

2011-08-24 17:08:28

Oracle数据库归档模式

2011-02-23 12:49:31

KonquerorEmbedded

2010-05-04 14:30:45

Oracle数据

2010-06-02 15:29:06

SVN版本控制

2010-07-13 16:12:15

DHCP协议

2010-07-14 16:16:16

Telnet模式

2010-04-12 10:16:55

Oracle存储过程

2010-04-01 09:34:06

Oracle函数
点赞
收藏

51CTO技术栈公众号