-- 创建用户
create user TCK identified by oracle;
-- 赋权
grant connect,resource to TCK;
-- 删除权限
revoke select any table from TCK;
revoke select any DICTIONARY from TCK;
-- 删除用户 CASCADE(用户下的数据级联删除)
drop user TCK CASCADE
-- 查询权限列表
select * from user_sys_privs where privilege in ('SELECT ANY TABLE','SELECT ANY DICTIONARY')
select * from user_role_privs;
select * from user_sys_privs where PRIVILEGE ='SELECT ANY TABLE';
SELECT * FROM user_tab_privs;
-- 创建数据源必须权限
grant SELECT ANY TABLE to TCK; -- 查询所有库表权限
grant SELECT ANY DICTIONARY to TCK; -- 查询用户所在库权限 与上个二选一
grant analyze any to TCK; -- 获取统计信息的权限
-- 预校验必须权限
grant SELECT ANY TABLE to TCK; -- 查询所有库表权限
grant SELECT ANY DICTIONARY to TCK; -- 查询用户所在库权限 与上个二选一
grant analyze any to TCK; -- 获取统计信息的权限
-- Oracle全量迁移必须权限列表
grant SELECT ANY TABLE to TCK; -- 查询所有库表权限
grant analyze any to TCK; -- 获取统计信息的权限
grant select_catalog_role to TCK; -- 获取DDL的权限
-- Oracle增量迁移必须权限列表
grant SELECT ANY TABLE to TCK; -- 查询所有库表权限
grant analyze any to TCK; -- 获取统计信息的权限
grant select_catalog_role to TCK; -- 获取DDL的权限
grant execute on dbms_flashback to TCK; -- 获取binlog起始点位的权限
grant EXECUTE_CATALOG_ROLE to TCK; -- debezium增量需要权限
grant select any dictionary to TCK; -- debezium增量需要权限
grant execute on dbms_flashback to TCK; -- debezium增量需要权限
grant flashback any table to TCK; -- debezium增量需要权限
grant select any transaction to TCK; -- debezium增量需要权限
grant execute on dbms_flashback to oracle_whcs;
grant select_catalog_role to oracle_whcs;文章来源:https://www.toymoban.com/news/detail-709124.html
SELECT VERSION FROM V$INSTANCE
grant SELECT ANY DICTIONARY to TCK;文章来源地址https://www.toymoban.com/news/detail-709124.html
到了这里,关于Debezium-增量迁移之 Oracle 迁移所需权限的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!