-- Create user
create user TCK identified by oracle;
-- Grant
connect,resource to TCK;
-- Delete permission
revoke select any table from TCK;
revoke select any DICTIONARY from TCK;
-- Delete user CASCADE (data under the user Cascade delete)
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;
-- The required permissions to create a data source
grant SELECT ANY TABLE to TCK; -- Query the permissions of all database tables
grant SELECT ANY DICTIONARY to TCK; -- Query the permissions of the user's library and the previous two choices
grant analyze any to TCK; -- Get Statistics permissions
-- Pre-verify the required permissions
grant SELECT ANY TABLE to TCK; -- Query the permissions of all database tables
grant SELECT ANY DICTIONARY to TCK; -- Query the permissions of the user's library and the previous two choices
grant analyze any to TCK; -- Get Statistics permissions
-- List of necessary permissions for Oracle full migration
grant SELECT ANY TABLE to TCK; -- Permission to query all database tables
grant analyze any to TCK; -- Permission to obtain statistical information
grant select_catalog_role to TCK; -- Permission to obtain DDL
-- List of necessary permissions for Oracle incremental migration
grant SELECT ANY TABLE to TCK; -- Permission to query all database tables
grant analyze any to TCK; -- Permission to obtain statistical information
grant select_catalog_role to TCK; -- Permission to obtain DDL
grant execute on dbms_flashback to TCK; -- Obtain the permission for the binlog starting point
grant EXECUTE_CATALOG_ROLE to TCK; -- Debezium increment requires permission
grant select any dictionary to TCK; -- Debezium increment requires permission
grant execute on dbms_flashback to TCK; -- debezium increment Grant flashback any
table to TCK; -- debezium increment requires permission
grant select any transaction to TCK; -- debezium increment requires permission
grant execute on dbms_flashback to oracle_whcs;
grant select_catalog_role to oracle_whcs;
SELECT VERSION FROM V$INSTANCE
grant SELECT ANY DICTIONARY to TCK;