改变oracle数据库归档模式_译文

Changing the Database Archiving Mode

改变数据库归档模式。

目的

This module describes how you can change the database archiving mode.

这篇文字描述如何的你可以改变那个数据库归档模式。

主题

This module discusses the following:

这篇文章如下讨论。

Overview

概述。

Using SQL*Plus to Change the Database Archiving Mode

使用sql*plus改变那个数据库归档模式。

Using EM to Change the Database Archiving Mode

使用企业管理器改变数据库归档模式。

观看屏幕截图。

Move your mouse over this icon to show all screenshots. You can also move your mouse over each individual icon to see only the screenshot associated with it.

移动你的鼠标通过这个图标显示所有的屏幕截图。你也可以移动你的鼠标通过逐个的图标,查看唯一联系图标屏幕截图。

概述。

Back to List of Topics

返回主题列表。

In this modul you will learn how to place the database in ARCHIVELOG mode. Note that you must also decide how you will handle the archiving of filled online redo log files.

在这个篇文章中你会学习如何设置数据库归档模式,注意你也必须决定你如何的处理联机重做日志文件的归档。

 

Refer to the Enabling Automatic Archiving and Performing Manual Archiving modules for additional information on archiving.

参考那个自动归档和完成手动归档模式关于那个额外的归档信息。

使用sql*plus目的改变那个数据库的归档模式。

Back to List of Topics

返回主题列表。

To change the archiving mode from NOARCHIVELOG to ARCHIVELOG, follow the steps below:

目的:为了改变归档日志模式从没有归档日志到归档日志,遵循下面的步骤。

 1.

Invoke SQL*Plus and connect as a user with SYSDBA privileges.

调用sql*plus并列的,连接一个有系统管理员权限的用户。 

 2.

Shut down the database instance using the NORMALIMMEDIATE, or TRANSACTIONAL option:

关闭数据库实例使用normal(正常),immediate,或者transactional(事务处理)选项。

SHUTDOWN IMMEDIATE 
关闭实例

Move your mouse over this icon to see the image

 

移动你的鼠标通过这个图标看那个图片。 

 3.

Make a whole database backup including all data files and control files. You can use operating system commands or RMAN to perform this operation.

备份一整个数据库包括数据文件和控制文件,你可以操作系统命令和rman(recovery management)满完成这次操作。
This backup can be used in the future for recovery with archived redo log files that will be created once the database is in ARCHIVELOG mode.

这次备份可以被使用在今后为了恢复,伴随着归档重做日志文件那个会被创建只有数据库是在那个归档日志模式。

 4.

Start the instance and mount the database:

开始实例和挂载那个数据库。

STARTUP MOUNT
开始挂载。

Move your mouse over this icon to see the image

移动你的鼠标通过这个图标看那个图片。 

 

 5.

Place the database in ARCHIVELOG mode:

设置数据库在归档日志模式。  

ALTER DATABASE ARCHIVELOG;
改变数据库归档日志。

Move your mouse over this icon to see the image

 移动你的鼠标通过这个图标看那个图片。 

 6.

Open the database:

打开数据库。

ALTER DATABASE OPEN;
改变数据库为open状态。

Move your mouse over this icon to see the image

移动你的鼠标通过这个图标看那个图片。 

 7.

Verify your changes:

验证模式是否改变成功。

ARCHIVE LOG LIST
归档日志列表。

Move your mouse over this icon to see the image

移动你的鼠标通过这个图标看那个图片。 

使用企业管理器目的改变数据库归档模式。

Back to List of Topics

To change the archiving mode from NOARCHIVELOG to ARCHIVELOG using Enterprise Manager, follow the steps below.

目的:为了改变归档日志模式从没有归档日志到归档日志,遵循下面的步骤。

Note: Oracle Enterprise Manager 9.2 was used in the examples.

注意:oracle企业管理器9.2版本被使用在下面的例子中。

 1.

Select START > Programs > Oracle > OraHome92 > Enterprise Manager Console. Select Launch Standalone and click OK.

选择单机和点击ok。

 2.

Expand Databases. Expand your database. Expand Instance and select Configuration. Shut down your instance on the General page.

扩展数据库,扩展你的数据库,扩展实例和选择配置。和关闭你的实例在常规的页面。

 3.

Make a whole database backup including all data files and control files. You can use Enterprise Manager, RMAN, or operating system commands to perform this operation.

备份一整个数据库包括数据文件和控制文件,你可以操作系统命令和rman(recovery management)满完成这次操作。
This backup can be used in the future for recovery with archived redo log files that will be created once the database is in ARCHIVELOG mode.

这次备份可以被使用在今后为了恢复,一旦数据库在归档日志模式,归档重做日志文件将会被创建。

 4.

Expand Databases. Expand your database. Expand Instance and select Configuration. Start your instance and mount the database on the General page. 

扩展数据库,扩展你的数据库,扩展实例和选择配置。和开移动启你的实例和挂载数据库在一般页面上。

Move your mouse over this icon to see the image

 

移动你的鼠标浮过这个图标看那个图片。 

 5.

Expand Databases. Expand your database. Expand Instance and select Configuration. You can change the database archiving mode on the Recovery page. Check Archive Log Mode and click Apply 

拓展数据库,拓宽你的数据库,扩展实例和查询配置,你可以改变你的数据库归档模式子在恢复页面。检查归档模式和点击应用。

Move your mouse over this icon to see the image

移动你的鼠标在图标上面看图片。

 6.

Verify your change on the General page

验证你在常规页面的改变。

Move your mouse over this icon to see the image

 移动你的鼠标在图标上面看图片。

 7.

Open your database on the General page.

打开数据库在常规页面。

 

Move your mouse over this icon to hide all screenshots

移动你的鼠标在那个图标为了查看所有隐藏的屏幕截图。

原文地址:https://www.cnblogs.com/yjhlsbnf/p/7643083.html