–***********************************************************************

–Copyright (c) 2003 Microsoft Corporation

–File:

–oracleadmin.sql

–Purpose:

–PL/SQL script to create a database user with the required

–permissions to administer SQL Server publishing for an Oracle

–database.

–&&ReplLogin ==Replication user login

–&&ReplPassword==Replication user password

–&&DefaultTablespace==Tablespace that will serve as the default

–tablespace for the replication user.

–The replication user will be authorized to allocate UNLIMITED space

–on the default tablespace, which must already exist.

–Notes:

–This script must be run from an Oracle login having the

–authorization to create a new user and grant unlimited tablespace on

–any existing tablespace.The login must also be able to grant to the

–newly created login the following authorizations:

–create public synonym

–drop public synonym

–create sequence

–create procedure

–create session

–create table

–create view

–Additionally, the following properties are also required for

–transactional publications.

–create any trigger

–All of the privileges may be granted through a role, with the

–exception of create table, create view, and create any trigger.

–These must be granted explicitly to the replication user login.

–In the script, all grants are granted explicitly to the replication

–user.

–In addition to these general grants, a table owner must explicitly

–grant select authorization to the replication user on a table before

–the table can be published.

***********************************************************************

ACCEPT ReplLogin CHAR PROMPT ‘User to create for replication: ‘;

ACCEPT ReplPassword CHAR PROMPT ‘Replication user passsword: ‘ HIDE;

ACCEPT DefaultTableSpace CHAR DEFAULT ‘SYSTEM’ PROMPT ‘Default tablespace: ‘;

–Create the replication user account

CREATE USER &&ReplLogin IDENTIFIED BY &&ReplPassword DEFAULT TABLESPACE &&DefaultTablespace QUOTA UNLIMITED ON &&DefaultTablespace;

–It is recommended that only the required grants be granted to this

–user.

–The following 5 privileges are granted explicitly, but could be

–granted through a role.

GRANT CREATE PUBLIC SYNONYM TO &&ReplLogin;

GRANT DROP PUBLIC SYNONYM TO &&ReplLogin;

GRANT CREATE SEQUENCE TO &&ReplLogin;

GRANT CREATE PROCEDURE TO &&ReplLogin;

GRANT CREATE SESSION TO &&ReplLogin;

–The following privileges must be granted explicitly to the

–replication user.

GRANT CREATE TABLE TO &&ReplLogin;

GRANT CREATE VIEW TO &&ReplLogin;

–The replication user login needs to be able to create a tracking

–trigger on any table that is to be published in a transactional

–publication.The CREATE ANY privilege is used to obtain the

–authorization to create these triggers.To replicate a table, the

–table owner must additionally explicitly grant select authorization

–on the table to the replication user.

–NOTE: CREATE ANY TRIGGER is not required for snapshot publications.

GRANT CREATE ANY TRIGGER TO &&ReplLogin;

oracle数据库定时同步工具,[每天自动同步一个数据库表的数据]sql server定时同步oracle数据表...相关推荐

  1. SQL SERVER 2005 同步复制技术(转)

    以下实现复制步骤(以快照复制为例) 运行平台SQL SERVER 2005 一.准备工作:1.建立一个 WINDOWS 用户,设置为管理员权限,并设置密码,作为发布快照文件的有效访问用户. 2.在SQ ...

  2. SQL SERVER 2005 同步复制技术 发布与订阅功能使用说明

    SQL SERVER 2005 同步复制技术 以下实现复制步骤(以快照复制为例) 运行平台SQL SERVER 2005 一.准备工作: 1.建立一个 WINDOWS 用户,设置为管理员权限,并设置密 ...

  3. SQL SERVER 2005 同步复制技术

    SQL SERVER 2005 同步复制技术 以下实现复制步骤(以快照复制为例) 运行平台SQL SERVER 2005 一.准备工作: 1.建立一个 WINDOWS 用户,设置为管理员权限,并设置密 ...

  4. 应用程序的数据库从Sql Server迁移到Oracle

    应用程序的数据库从Sql Server迁移到Oracle 迁移案例一:数据库: Sql Server 2008到Oracle 9i 工具: Sybase PowerDesiner 12 试用版, PL ...

  5. SQL SERVER定时备份数据库

    SQL SERVER定时备份数据库 点击 "管理"--"sql server代理"--"作业" 新建作业: 常规选项卡里,"名称& ...

  6. 从Sql server 2000 到 Oracle 10g数据库迁移数据类型转化

    2010-01-12 从Sql server 2000 到 Oracle 10g数据库迁移数据类型转化 文章分类:数据库 SqlServer 2k转换为Oracle 10g 列名 SqlServer数 ...

  7. SQL Server - 使用 Merge 语句实现表数据之间的对比同步

    SQL Server - 使用 Merge 语句实现表数据之间的对比同步 原文:SQL Server - 使用 Merge 语句实现表数据之间的对比同步 表数据之间的同步有很多种实现方式,比如删除然后 ...

  8. oracle数据库访问sqlserver2008,透过SQL Server 2008访问Oracle 10g的配置方法

    之前写过一篇关于SQL Server 访问MySQL数据库的文章,最近正好又遇到需要访问Oracle 的情况,将配置过程记录下来也供大家参考. 准备工作 事先在需要访问Oracle 数据库的主机上完成 ...

  9. 如何将链接的服务器从SQL Server“调试”到Oracle数据库实例

    介绍 (Introduction) Intended audience 目标听众 This document is intended for database administrators who w ...

最新文章

  1. 博客园北京俱乐部第三次技术活动(2009/5/23)总结
  2. 04Hadoop中的setPartitionerClass/SortComparator/GroupingComparator问题
  3. 解决SecureCRT无法用非root账号登录ssh
  4. linux socket 面试题,面试题
  5. Android四级缓存,RecyclerView的四级缓存-初探
  6. 重新解释i++和++i
  7. C4D结合AE制作酷炫MG光影动画心得
  8. 重新想象 Windows 8 Store Apps (35) - 通知: Toast 详解
  9. 大数据时代背景下智能工厂的能源管理系统
  10. c语言实现作业调度先来先服务和短进程优先,先来先服务和高响应比优先调度算法C语言实现...
  11. Part I. S3. 区间直觉模糊集理论
  12. 汽车抛负载7637-5A/5B测试介绍
  13. 保乐力加在四川峨眉山兴建中国首家麦芽威士忌酒厂
  14. 用GNS3制作路由交换网络拓扑图
  15. 百度面试题:求绝对值最小的数
  16. C 程序设计语言——第七章练习题
  17. Navicat快捷键选择当前行
  18. 用了几年的iPhone 11竟然可以免费换电池
  19. C# 面向对象学习笔记
  20. kali虚拟机无法联网

热门文章

  1. 听说,他用报表关联数据库表,运维效率提升70%?
  2. 一天 6 个面试邀约,投一个约一个,挡不住!
  3. 【视频】Vue作者分享:Vue 3.0 进展
  4. 剑三千岛湖服务器是不是维护了,《剑网3》4.10维护公告:疆域重新进行地理划归...
  5. linux进程池 自动增长,linux下C 线程池的原理讲解和代码实现(能自行伸缩扩展线程数)...
  6. 完成杂志续订c语言程序,C语言程序设计报告杂志订阅管理软件.doc
  7. 调用支付jsapl缺少参数:totalfee openid无法取得_微信支付的软件架构,牛逼!
  8. Python中两个浮点数的简单运算
  9. 用Python一次性把论文作图与数据处理全部搞定!
  10. rsync配置和使用