Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2415649
  • 博文数量: 384
  • 博客积分: 10193
  • 博客等级: 上将
  • 技术积分: 3785
  • 用 户 组: 普通用户
  • 注册时间: 2005-06-09 18:02
文章分类

全部博文(384)

文章存档

2011年(10)

2010年(29)

2009年(39)

2008年(36)

2007年(43)

2006年(198)

2005年(29)

分类: Oracle

2006-06-23 21:28:54

主题: How To Enable/Disable Archive Log Mode on Oracle9i Real Application Cluster
  : 注释:235158.1 类型: HOWTO
  上次修订日期: 03-APR-2006 状态: PUBLISHED


  • goal: How to Enable/Disable Archive Log In Real Application Cluster
  • fact: Oracle Server - Enterprise Edition Oracle 9
  • fact: Oracle9i Real Application Cluster (RAC)



fix:

1. Shut down all instances.

2. Set the CLUSTER_DATABASE parameter to false on one instance in the parameter
file. If you are using the server parameter file, make an SID-specific entry
for this, like:

.CLUSTER_DATABASE= False
.CLUSTER_DATABASE= False

For Modifying server parameter file (SPFILE) you can refer to :


3. Set the LOG_ARCHIVE_START parameter to true.

4. Set the LOG_ARCHIVE_FORMAT and make sure the parameter containing the %t
parameter includes the thread number in the archived logfile name.

5. Set the cluster database wide LOG_ARCHIVE_DEST_1 parameter in the parameter
file as follows:

LOG_ARCHIVE_DEST_1='LOCATION=$ORACLE_BASE/oradata//archive'

Note : You can multiplex the destination to up to ten locations, refer to:


To specify the archive log destinations on a per instance basis for a two-
instance cluster database, for example, set the parameter as follows:

.LOG_ARCHIVE_DEST_1='LOCATION=$ORACLE_BASE/oradata/gt;/archive'
.LOG_ARCHIVE_DEST_1='LOCATION=$ORACLE_BASE/oradata/gt;/archive'

Archive logs can be on the shared disk on platforms that support CFS
(Cluster File System). For more information on this see the following note:

Note 183408.1
Raw Devices and Cluster Filesystems With Real Application Clusters

6. Mount the database in exclusive mode for the instance on which you have set
CLUSTER_DATABASE to false.

7. Set the database in ARCHIVELOG mode :

SQL> ALTER DATABASE ARCHIVELOG;

8. Shutdown the instance.

9. Change the value of the CLUSTER_DATABASE parameter to true.

10. Startup all your instances.

To disable archive logging, follow the same steps but use the NOARCHIVELOG
clause of the ALTER DATABASE statement.


我曾写过一个文章
http://blog.chinaunix.net/u/7667/showart.php?id=103063
可以和metalink的这个notes放在一起读。
阅读(4150) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~