etl2007 发表于 2013-3-26 21:52:52

LOG_ARCHIVE_CONFIG 的困惑

本帖最后由 etl2007 于 2013-3-26 22:00 编辑

按照Oracle文档的说法

http://docs.oracle.com/cd/B19306_01/server.102/b14237/initparams098.htm


LOG_ARCHIVE_CONFIGProperty Description
Parameter type String
Syntax LOG_ARCHIVE_CONFIG =
{
[ SEND | NOSEND ]
[ RECEIVE | NORECEIVE ]
[ DG_CONFIG=(remote_db_unique_name1 [, ... remote_db_unique_name9) | NODG_CONFIG ]
}

Default value 'SEND, RECEIVE, NODG_CONFIG'
Modifiable ALTER SYSTEM
Basic No


LOG_ARCHIVE_CONFIG enables or disables the sending of redo logs to remote destinations and the receipt of remote redo logs, and specifies the unique database names (DB_UNIQUE_NAME) for each database in the Data Guard configuration.

Values:

•SEND

Enables the sending of redo logs to remote destinations

•NOSEND

Disables the sending of redo logs to remote destinations

•RECEIVE

Enables the receipt of remotely archived redo logs

•NORECEIVE

Disables the receipt of remotely archived redo logs

•DG_CONFIG

Specifies a list of up to 9 unique database names (defined with the DB_UNIQUE_NAME initialization parameter) for all of the databases in the Data Guard configuration.

•NODG_CONFIG

Eliminates the list of service provider names previously specified with the DG_CONFIG option.




但假设我现在
主库 DB_UNique_name = PRI
备库 DB_UNique_name = ST


那么如果我设置成
LOG_ARCHIVE_CONFIG='NORECEIVE,DG_CONFIG= (PRI,ST) '

那不意味着主库和备库都接收不了日志,那么dataguard岂不是成了一句空话
因为日志接收都不支持,那么何况是同步呢?

etl2007 发表于 2013-4-2 03:01:41

请问这个问题哪位大侠指点一下啊?

hzhg 发表于 2013-4-2 10:15:27

也许为了某种需要可以设置暂时停止接收日志吧!

etl2007 发表于 2013-4-7 10:29:06

hzhg 发表于 2013-4-2 10:15 static/image/common/back.gif
也许为了某种需要可以设置暂时停止接收日志吧!

这不还是没有个结论吗?

etl2007 发表于 2013-11-7 23:14:25

关键这个也比较令人费解
•NODG_CONFIG

Eliminates the list of service provider names previously specified with the DG_CONFIG option.

什么时候需要 消除之前的配置service provider啊?

etl2007 发表于 2014-8-10 09:03:05

本帖最后由 etl2007 于 2014-8-10 10:04 编辑

但是我现在还是有疑问,如果我设置成
LOG_ARCHIVE_CONFIG='NOSEND,DG_CONFIG= (PRI,ST) '
假设我现在PRI 这个数据库的角色就是Primary ROLE
那么岂不是主库也不能send日志啊?

有哪种场景需要这样配置呢?

drckss 发表于 2015-2-24 02:55:49

etl2007 发表于 2013-11-7 23:14 static/image/common/back.gif
关键这个也比较令人费解
•NODG_CONFIG



setup NODG_CONFIG when you want to  delete DG???

hollow_fdl 发表于 2015-3-24 11:20:14

确实有点费解,不过应该是有他存在的道理的
页: [1]
查看完整版本: LOG_ARCHIVE_CONFIG 的困惑