Chinaunix首页 | 论坛 | 博客
  • 博客访问: 528191
  • 博文数量: 855
  • 博客积分: 40000
  • 博客等级: 大将
  • 技术积分: 5005
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-16 19:08
文章分类

全部博文(855)

文章存档

2011年(1)

2008年(854)

我的朋友

分类:

2008-10-16 19:09:33

在10gR2中,oracle简化了stream的配置的全过程,在9iR2及10gR1中,需要针对stream的捕获、传播、应用进程进行配置的步骤

已经被dbms_streams_adm新提供的过程(pre_instantiation_setup/post_instantiation_setup)给封装起来啦,

配置stream只需要调用两个过程就可以搞定啦,真是太激动人心啦,下面简单地介绍一下dbms_streams_adm的新过程的用法。

1.在stream进行配置前,需要做些准备工作

a 源库与目标库初始化参数的设置

alter system set aq_tm_processes=4 scope=spfile;

alter system set job_queue_processes=5 scope=spfile;

alter system set global_names=true scope=spfile;

alter system set streams_pool_size=51m scope=spfile;

说明streams_pool_size在生产环境中最好>200m

b 源库与目标库tnsnames.ora配置

确保正确,可用tnsping通

c 源库与目标库复制管理员的创建

create user strmadmin identified by strmadminpw

default tablespace &tbs_name quota unlimited on &tbs_name;

grant connect, resource, dba to strmadmin;

d 源库与目标库创建互连的数据链

connect strmadmin/strmadminpw@test96;

create database link test99.net connect to strmadmin

identified by strmadminpw using 'test99';

connect strmadmin/strmadminpw@test99;

create database link test96.net connect to strmadmin

identified by strmadminpw using 'test96';

说明:必须确保双方的数据库链是可以连通.

用pre_instantiation_setup/post_instantiation_setup过程时

db link必须用db_name.domain的格式

e 源库与目标库必须处于归档模式

shutdown immediate;

startup mount;

alter database archivelog;

alter database open;

[1]      

【责编:Chuan】

--------------------next---------------------

阅读(1264) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~