对于Oracle来说,用户等于Schema,创建用户即创建Schema
-- 创建用户
create user TCK_TEXT identified by "TCKTCK";
--赋予登陆权限
grant connect to TCK_TEXT;
--查看权限列表
select * from user_role_privs ;
select * from user_sys_privs;
-- 数据迁移必须权限赋予
-- Oracle全量迁移必须权限列表
grant SELECT ANY TABLE to TCK_TEXT; -- 查询权限
grant analyze any to TCK_TEXT; -- 获取统计信息的权限
grant connect to TCK_TEXT; -- 建表权限
grant resource to TCK_TEXT; -- 建表权限
grant select_catalog_role to TCK_TEXT; -- 获取DDL起始点位的权限
grant execute on dbms_flashback to TCK_TEXT; -- 获取binlog起始点位的权限
grant EXECUTE_CATALOG_ROLE to TCK_TEXT; -- debezium增量需要权限
grant select any dictionary to TCK_TEXT; -- debezium增量需要权限
grant execute on dbms_flashback to TCK_TEXT; -- debezium增量需要权限
grant flashback any table to TCK_TEXT; -- debezium增量需要权限
grant select any transaction to TCK_TEXT; -- debezium增量需要权限
--删除权限
revoke SELECT ANY TABLE from TCK_TEXT;
revoke select any dictionary from TCK_TEXT;