创建逻辑备用库(Logical Standby Database)[13]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 hayyon 的 blog

查看最近的归档日志(在后面的逻辑备用数据库的创建过程中需要用到)

sql> alter system archive log current;(对当前日志做归档)

sql> select name from v$archived_log

   2> where (sequence#=(select max(sequence#) from v$archived_log

   3> where dictionary_begin = 'yes' and standby_dest= 'no'));

 

name

-----------------------------------------------------------------

 

e:\oracle\oradata\orcl\archive\1_19.dbf

上面的查询其中where子句的dictionary_begin指明是要找出新建的字典, standby_dest指明是本地归档目录而不是远程归档.

 

为备用数据库创建准备初始化参数:

sql> create pfile='f:\oracle\initstdby.ora' from spfile;

 

将前面三步所得到的数据文件,控制文件和参数文件从主数据库的服务器拷贝到备用数据库的服务器.(拷贝到f:\oracle目录)

 

在备用数据库服务器修改初始化参数(刚拷贝过来的初始化参数文件)修改后的值大概如下:

 

*.aq_tm_processes=1

本文关键:创建逻辑备用库(Logical Standby Database)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top