WEB开发网
开发学院数据库Oracle Oracle数据库集中复制方法浅议 阅读

Oracle数据库集中复制方法浅议

 2008-09-08 12:53:06 来源:WEB开发网   
核心提示: disconnect;connect mvadmin/mvadmin@BJ;begindbms_defer_sys.schedule_purge(next_date => sysdate,interval => ’/*1:hr*/ sysdate + 1&rsquo

disconnect;
connect mvadmin/mvadmin@BJ;
begin
dbms_defer_sys.schedule_purge(
next_date => sysdate,
interval => ’/*1:hr*/ sysdate + 1’,
delay_seconds => 0,
rollback_segment => ’’);
end;

5.建立复制管理员mvadmin的数据库连接:

create database link ORACLSH connect to proxy_bjoracle
identified by proxy_bjoralce
Connect to ... Identified by ...子句指明用什么用户连接远程数据库

6.建立复制调度数据库连接作业:

begin
dbms_defer_sys.schedule_push(
destination => ’ora92zjk’,interval => ’/*1:hr*/ sysdate + 1’,
next_date => sysdate,stop_on_error => false,
delay_seconds => 0,parallelism => 0);
end;
/

7.授予SHORACL用户(对应SHORACL方案)

相应的权限建立实体化视图:

disconnect;
connect system/passwd@BJ;
grant alter session to crm;
grant create cluster to crm;
grant create database link to crm;
grant create sequence to crm;
grant create session to crm;
grant create synonym to crm;
grant create table to crm;
grant create view to crm;
grant create procedure to crm;
grant create trigger to crm;
grant unlimited tablespace to crm;
grant create type to crm;
grant create any snapshot to crm;
grant alter any snapshot to crm;

8.建立复制方案的数据库连接:

上一页  1 2 3 4 5 6 7 8  下一页

Tags:Oracle 数据库 集中

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接